时间:2021-07-01 10:21:17 帮助过:21人阅读
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
Options Indexes FollowSymLinks
DirectoryIndex index.html
AllowOverride None
Order deny,allow
Allow from all