apache的rewrite规则无法加载问题。
<VirtualHost *:80>
ServerAdmin k@5.com
DocumentRoot /data/web/xxx
ServerName www.xxx.net
ServerAlias xxx.net
DirectoryIndex index.php index.shtml index.html
<Directory "/data/web/xxx">
Options FollowSymLinks Includes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
RewriteEngine On
RewriteRule ^vod-(.*)$ index.php\?s=/Home-vod-$1
RewriteRule ^news-(.*)$ index.php\?s=/Home-news-$1
RewriteRule ^ajax-(.*)$ index.php\?s=/Home-ajax-$1
RewriteRule ^tag-(.*)$ index.php\?s=/Home-tag-$1
RewriteRule ^gb-(.*)$ index.php\?s=/Home-gb-$1
RewriteRule ^cm-(.*)$ index.php\?s=/Home-cm-$1
</VirtualHost>
<Directory "/data/web/xxx">
Options FollowSymLinks Includes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
和
本文转自 liang3391 51CTO博客,原文链接:http://blog.51cto.com/liang3391/812280