只是严重错误检查 - 在httpd.conf下我们有
<DIRECTORY />
AllowOveride All
</DIRECTORY>
在htaccess中我们有:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^dir/?$ http://internal.url/dir/ [L,R=301]
</IfModule>
内部http://internal.url/dir/显示正确的网页。
然而,通过apache,重写规则只给出了404
你能想出任何理由吗?
重写基础是/所以它被遗漏了。
=================================
更新,我刚刚转发了httpd.conf:
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
还有一些v主持人:
<VirtualHost *:80>
Options -MultiViews
RewriteEngine On
Include htaccess/x/*
RewriteLog "url.log"
RewriteLogLevel 2
ProxyRequests off
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
ProxyPreserveHost On
</VirtualHost>
<VirtualHost *:81>
Options -MultiViews
RewriteEngine On
Redirect permanent /d/WAYN http://url/WAYN/
Include htaccess/w/*
RewriteLog "/var/log/httpd/url.log"
RewriteLogLevel 2
ProxyRequests off
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
ProxyPreserveHost On
</VirtualHost>