|
|
比如将
contact/mydomain.com.html 重新定向到 contact_us.php?domian=mydomain.com
我写了下面的 htaccess ,好像只能重定向到 contact_us.php?domain=com , 是不是正则表达式写错了?
RewriteEngine on
ErrorDocument 404 /404.php
RewriteBase /
RewriteRule contact/(\S*)(\.[\.a-zA-Z]+)\.htm$ contact_us.php?domain=$1$2[L]
RewriteRule contact/?$ contact_us.php [L]
RewriteRule (\S*)(\.[\.a-zA-Z]+)\.htm$ details.php?domain=$1$2 [L]
RewriteRule sitemap.xml$ sitemap.php [L] |
|