标签: mod-rewrite
我在htaccess中使用此代码
RewriteCond "%{HTTP_HOST}" "!^www\." [NC] RewriteCond "%{HTTP_HOST}" "(.*)" RewriteRule "(.*)" "http://www.%1$1" [R=301,L]
它工作正常,但我想在mon localhost
感谢您的帮助