我现在想把 abc.com转换成www.abc.com
问题是我的.htaccess里面已经做过其它的转向,该怎么写这样
原来是这样的
RewriteEngine OnRewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?$1 [L] ErrorDocument 404 /index.php
问题是我的.htaccess里面已经做过其它的转向,该怎么写这样
原来是这样的
RewriteEngine OnRewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?$1 [L] ErrorDocument 404 /index.php
RewriteRule ^(.*)$ http://www.%{http_host}/$1 [L,R=301]