日期:2014-05-17 浏览次数:20445 次
<VirtualHost *:80>
RewriteEngine ON
RewriteCond %{HTTP_HOST} ^(.*)www.aaa.com$ [OR]
RewriteCond %{HTTP_HOST} ^([^www]*).aaa.com$
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ http://www.aaa.com.$1 [R,QSA,L]
RewriteRule ^/([a-zA-Z]+)\.html$ /run.php?controller=$1&action=$1&default=1 [L]
ServerAdmin admin@yahoo.com.cn
DocumentRoot "E:/www/home"
ServerName www.aaa.com
ErrorLog "D:/AppServ/log/index_error.log"
CustomLog "D:/AppServ/log/index_access.log" common
ErrorDocument 404 http://www.aaa.com/error_404.html
ErrorDocument 403 http://www.aaa.com/error_403.html
<Directory "E:/www/home">
Options Indexes FollowSymLinks
DirectoryIndex index.html
AllowOverride None
Order deny,allow
Allow from all
</Directory>
</VirtualHost>