0
我是使用.htaccess工作的新手,我在使用mod_rewrite
for apache时遇到问题。mod_rewrite无法正常工作
所以基本上我有一个URL。 www.website.com/test/index.php
,我想它是短www.website.com/t/index.php
所以在我.htaccess
文件我有这三条线:
RewriteEngine On
RewriteBase/
RewriteRule ^test/(.*) t/$1 [R=301,L]
这完全适用,我向www.website.com/ t/index.php但index.php页面不会加载,只会显示一个404 error
。任何帮助都会非常赞赏。
请考虑发布此[serverfault.com](http://serverfault.com)。 –
如果您遇到404错误,您如何知道重写工作? – Codeguy007
那么当我去www.website.com/test/index.php重新指引我到www.website.com/t/index.php但index.php不会加载新的URL。 – user1476276