- Joined
- Dec 15, 2005
- Posts
- 1,780
- Reaction score
- 66
Been looking for a solution to this but can find anything that specifically deals with this problem:
I have just rebuilt a site in Wordpress for a client, I have set up a bunch of 301's in htaccess from old site to new, but any old url with a number in it doesn't work, all the ones without numbers are fine.
example:
/index.php/news/15/rhs redirected to http://www.domain.com/news/rhs/
the folder/number /15/ stays in the redirected URl so it ends up:
http://www.domain.com/news/15/rhs/
Anyone know how to get around this?
current mod re-write
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Thanks
I have just rebuilt a site in Wordpress for a client, I have set up a bunch of 301's in htaccess from old site to new, but any old url with a number in it doesn't work, all the ones without numbers are fine.
example:
/index.php/news/15/rhs redirected to http://www.domain.com/news/rhs/
the folder/number /15/ stays in the redirected URl so it ends up:
http://www.domain.com/news/15/rhs/
Anyone know how to get around this?
current mod re-write
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Thanks