开发者

htaccess don't redirect root folder

I have a htaccess rule that is fixing some of my previous URL change mistakes which looks like this

RewriteCond %{HTTP_HOST} !^images.lazygamer\.net$ [NC]
RewriteCond %{REQUEST_URI} !^/(wp-content|wp-admin|wp-includes|fixed|contact-details|advertise|about|category|submission|images|ps3开发者_运维技巧|xbox-360|wii).*$
RewriteRule ^(.*)$ http://www.lazygamer.net/fixed/$1 [R=301,L]

So now if you have go to www.lazygamer.net/story/ it will redirect you to www.lazygamer.net/fixed/story which is perfect

BUT... it is also redirecting www.lazygamer.net to www.lazygamer.net/fixed ... how do I stop it doing that?


Try adding "\/" to the URLs not be considered; something like

RewriteCond %{REQUEST_URI} !^/(\/!wp-content|w...
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜