SEO Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherSEO Scripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old January 18th, 2007, 11:20 PM
kahsoon kahsoon is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 33 kahsoon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 56 m 54 sec
Reputation Power: 4
Send a message via MSN to kahsoon
Mod_Rewrite Permalink Problem

I've put this mod_rewrite code in my .htaccess so that it will redirect funnyall.com to www.funnyall.com, it works but the problem is when i type http://funnyall.com/2006/12/05/funny-all-1/ it will redirect to http://www.funnyall.com/index.php

Is there any way to fix this problem so that when i type in http://funnyall.com/2006/12/05/funny-all-1/ it will redirect to http://www.funnyall.com/2006/12/05/funny-all-1/

Below is my code:

Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^funnyall\.com$ [NC]
RewriteRule ^(.*)$ http://www.funnyall.com/$1 [R=301,L]


P/S: I'm using WP version 2.0.2

Last edited by kahsoon : January 19th, 2007 at 01:17 AM.

Reply With Quote
  #2  
Old January 19th, 2007, 01:51 AM
Catacaustic Catacaustic is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 130 Catacaustic User rank is Private First Class (20 - 50 Reputation Level)Catacaustic User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 Days 16 h 56 m 8 sec
Reputation Power: 5
Your problem is in what you're looking for. Your code of:
Code:
^(.*)$

will return everything, and not just the page details that you're looking for.

I haven't tested this live, but in a regex checker that I know and love, this works fine, and can leave out a line:
Code:
^http://url.com/(.*)$

So, you'd end up with
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^http://funnyall.com/(.*)$ http://www.funnyall.com/$1 [R=301,L]

Never know, it just might work.

Reply With Quote
  #3  
Old January 19th, 2007, 02:07 AM
kahsoon kahsoon is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 33 kahsoon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 56 m 54 sec
Reputation Power: 4
Send a message via MSN to kahsoon
Quote:
Originally Posted by Catacaustic
Your problem is in what you're looking for. Your code of:
Code:
^(.*)$

will return everything, and not just the page details that you're looking for.

I haven't tested this live, but in a regex checker that I know and love, this works fine, and can leave out a line:
Code:
^http://url.com/(.*)$

So, you'd end up with
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^http://funnyall.com/(.*)$ http://www.funnyall.com/$1 [R=301,L]

Never know, it just might work.


The code you gave me can't even redirect from funnyall.com to www.funnyall.com, same goes to the permalink redirect.

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherSEO Scripts > Mod_Rewrite Permalink Problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT