这就是我在.htaccess文件中的内容,当我运行速度测试时,www显示并显示在所有URL中,如果您知道哪些内容已损坏,请提供帮助。在CodeIgniter中从域名中删除www
RewriteEngine On
RewriteCond %{HTTPS} !=off
RewriteRule .* http://%{SERVER_NAME}%{REQUEST_URI} [R,L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|public|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
你的问题似乎不清楚... –
可能的重复http://stackoverflow.com/questions/12030990/codeigniter-htaccess-to-remove-index-php-and-www –
我没有看到www中.htaccess文件,为什么WWW显示出来? – Bart