htaccess 重定向的URL不起作用

zhaozhiqiang000 2016-05-07 10:21:59
我在迁移网站时,修改完配置文件后,发现htaccess中的url不起作用,
httpd.conf里开启了rewrite

AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
#<Files ~ "^\.ht">
# Order allow,deny
# Deny from all
# Satisfy All
</Files>
<Files ".htaccess">
Order deny,allow
Allow from all
</Files>


Alias /public_html/ "/home/*/public_html/"

<Directory /home/*/public_html>

Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

</Directory>



下面是htaccess的重定向

Options +FollowSymLinks
RewriteEngine On
CheckSpelling On
ErrorDocument 404 /404-Error.html

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^index.html index.php [L,QSA]
RewriteRule ^(news|solutions|support|buy|about-us|exhibits-and-customer-events|custom-services|technical-supports|law-terms|terms-and-regulations) cms/app/showArc.php [L,QSA]
RewriteRule ^(contact-us) cms/index.php?option=com_contact&view=contact&id=9 [L,QSA]
RewriteRule ^(download) cms/app/download.php [L,QSA]
RewriteRule ^(product) shop/app/showPro.php [L,QSA]
RewriteRule ^surveyB.html survey/survey.html [L,QSA]
RewriteRule ^surveyA.html surveyA_en/survey.html [L,QSA]
RewriteRule ^pi-customization/ shop/star/pi-customization/index.html [L,QSA]
RewriteRule ^Pi3/ shop/star/Pi3/index.html [L,QSA]


不知怎么回事,htaccess的重定向一直不起作用个,而其他页面的伪静态却可以,不知道为什么,请知道的大神帮忙
...全文
881 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

25,988

社区成员

发帖
与我相关
我的任务
社区描述
高性能WEB开发
社区管理员
  • 高性能WEB开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧