這就是我在.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