我想知道为什么下面的htaccess文件生成一个500错误:重写URL问题
<IfModule !mod_rewrite.c>
ErrorDocument 500 "Your_Server_Is_Not_Compatible: Apache does not have mod_rewrite loaded. Please check your Apache setup."
RedirectMatch 302 .* index.php
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*)$ versions/0/1/$1
</IfModule>
感谢在此先感谢
所以我想要任何文件重定向到文件夹/版本/ 0/1中的等价物,例如,index.php => versions/0/1/index.php等... – fabjoa 2010-08-08 20:40:47
为什么不问错误日志? – 2010-08-08 20:41:06
我做到了,没有错误显示日志 – fabjoa 2010-08-08 20:43:24