这是我的.htaccess,我想将我的domain.com重写为www.domain.com。我怎样才能做到这一点?apache url用htaccess重写
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|xml|txt)$
RewriteCond %{REQUEST_URI} !example/
RewriteRule ^(.*)$ index.php?q=$1 [QSA]
感谢
可能重复:http://stackoverflow.com/questions/1685962/htaccess-redirect-non-www-to-www-preserving-uri-string – jasonbar 2010-08-13 07:42:53
真。第二个对我很好。谢谢。 (我还没有找到它。) – 2010-08-13 09:55:11