【发布时间】:2016-02-12 08:28:44
【问题描述】:
这是我的 .htaccess 文件中的内容,当我运行速度测试时,www 正在显示并且还显示在所有 URL 中,如果您知道什么问题,请提供帮助。
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]
【问题讨论】:
-
您的问题似乎不清楚...
-
我在 .htaccess 文件中没有看到 www,为什么会显示 WWW?
标签: php apache .htaccess codeigniter