HTACCESS重复两次url

时间:2017-11-07 01:20:57

标签: .htaccess mod-rewrite url-rewriting

您好.HTACCESS HTTPS重定向存在这个小问题

未找到 在此服务器上找不到请求的URL /limoamerican/limoamerican/limofleet.php。 此外,尝试使用ErrorDocument处理请求时遇到404 Not Found错误。

感谢任何帮助

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


Options -Multiviews
Options +FollowSymLinks


#LoadModule rewrite_module modules/mod_rewrite.so 
#AddModule mod_rewrite.c

RewriteBase /

#RewriteRule    ^geo/United-States/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$  ijt.php?state=$1&city=$2  [NC,L]

#RewriteRule    ^geo/United-States/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$  rxm.php?state=$1&city=$2  [NC,L]

RewriteRule    ^geo/United-States/NY/([A-Za-z0-9-]+)/?$  mxt.php?city=$1  [NC,L]
RewriteRule    ^geo/United-States/CT/([A-Za-z0-9-]+)/?$  ijt.php?city=$1  [NC,L]
RewriteRule    ^geo/United-States/NJ/([A-Za-z0-9-]+)/?$  rxm.php?city=$1  [NC,L]

0 个答案:

没有答案