My .htaccess files looks like this,
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(domain\.com)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.+)\.html$ /index.php?params=$1 [L]
Whenever I write a redirect, for example,
Redirect 301 /game/0001/old.html http://www.domain.com/game/0002/new.html
I'll get this,
http://www.domain.com/game/0002/new.html?params=game/0001/old
How to I code my .htaccess file to truncate the " ?params=game/0001/old" part?
I don't have any problems with URLs that are not redirected.
Regards
|