0
我需要重定向加www到www的所有要求,但我也需要每一个重定向将结束在index.php文件重定向WWWNONWWW到使用的.htaccess重写规则
.htaccess文件代码
RewriteEngine On
RewriteBase/
RewriteRule ^(_part) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php?/$0 [PT,L]
当前URL: http://example.com
请问,任何人都可以帮助我?
的[重定向非www到在.htaccess WWW]可能的复制(http://stackoverflow.com/questions/12050590/redirect-non-www-to-www -in-htaccess) –
添加预期的输出,使读者清楚需要什么实际的url。 –