htaccess文件无法在所有浏览器中使用

时间:2014-01-08 07:01:46

标签: .htaccess rewrite

我创建了一个用于重写网址的htaccess文件。但它仅适用于Firefox浏览器。 这是我的htaccess代码:

RewriteCond %{THE_REQUEST} \ /+New-York-Mills\.php\?ff_nm_from=([^&]+)&search=([^&\ ]+)&location=([^&\ ]+)
RewriteRule ^ /New-York-Mills/%1/%2/%3? [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^New-York-Mills/([^/]+)/([^/]+)/([^/]+)$ /New-York-Mills.php?ff_nm_from=$1&search=$2&location=$3 [L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /style.css [NC]

之前我的网址是

http://example.com/New-York-Mills.php?ff_nm_from=new&search=hotel&location=north park

用上面的htaccess代码重写(粘贴在我之前的帖子中)后,它变为:

http://example.com/New-York-Mills/new/hotel/north+park

0 个答案:

没有答案