1
我想在apache2 conf中写一些重写规则,它们不起作用 以下是我在apache conf中的虚拟主机块。我的操作系统是Ubuntu的12.04服务器版apache2重写规则不起作用
DocumentRoot /var/www/xyz
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/xyz>
Options Indexes FollowSymLinks MultiViews
#AllowOverride None
AllowOverride All
Order allow,deny
#Order deny,allow
allow from all
</Directory>
我有一些重写规则.htaccess文件如下
ReWriteEngine on RewriteRule ^/matchV/(.*) http://host:8080/$1 RewriteRule ^/other/(.*?)$ /httpdcontent/$1
重写模块与Apache启用。
有人可以告诉我,如果我失去了什么。
感谢,
桑迪普
到底在配置rewritebase的地方? – Sandeep
根据您的覆盖设置,可以在.htaccess文件中完成此操作。 –