|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
Quote:
The code you gave me can't even redirect from funnyall.com to www.funnyall.com, same goes to the permalink redirect. |
![]() |
| Viewing: SEO Chat Forums > Other > SEO Scripts > Mod_Rewrite Permalink Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|