LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine on RewriteMap lowercase int:tolower RewriteMap vhost txt:/etc/httpd/vhost.map #路径可修改 RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$ RewriteCond ${vhost:%1} ^(/.*)$ RewriteRule ^(.*)$ %1$1
service httpd restart
cd /etc/httpd/vhost.map vim vhost.map
www.mykurol.com /var/www/html
转载于:https://blog.51cto.com/kurolz/1911148