.htaccess 301重定向重写的URL

.htaccess 301重定向重写的URL,.htaccess,url,url-rewriting,.htaccess,Url,Url Rewriting,我试图重定向一些重写的URL,但当重定向工作时,它在重写之前包含了原始参数 e、 g.重定向/used-cars.html 重写的URL基于以下结构: http://www.domain.co.uk/pages/index.php?p=used-cars 然而,正在发生的是: http://www.domain.co.uk/our-cars.html?p=used-cars .htaccess文件如下所示: Options -Indexes Options +FollowSymlinks R

我试图重定向一些重写的URL,但当重定向工作时,它在重写之前包含了原始参数

e、 g.重定向/used-cars.html

重写的URL基于以下结构:

http://www.domain.co.uk/pages/index.php?p=used-cars
然而,正在发生的是:

http://www.domain.co.uk/our-cars.html?p=used-cars
.htaccess文件如下所示:

Options -Indexes
Options +FollowSymlinks
RewriteEngine On

RewriteCond %{HTTP_HOST} ^odins.co.uk [NC]
RewriteRule ^(.*)$ http://www.odins.co.uk/$1 [L,R=301]
RewriteRule ^([^/]*)\.html$ /pages/index.php?p=$1 [L]
RewriteRule ^news/([^/]*)$ /pages/news/index.php?n=$1 [L]

Redirect /used-cars.html http://www.domain.co.uk/our-cars.html
任何帮助都将不胜感激

保罗