开发者

Redirect with .htaccess

i have a pointed domain keepyourlinks.com on my cpanel of piscolabis.info, so if you go to piscolabis.info/keepyourlinks.com/ you acces it and i don't want that, i'm trying:

RewriteCond %{HTTP_HOST} ^piscolabis.info/keepyourlinks.com/ [NC]
RewriteRule ^(.*)$ http://keepyourlinks.com/$1 [L,R=301]

But it doesn't work... 开发者_Python百科:S


This should work:

RewriteCond %{HTTP_HOST} ^piscolabis.info$
RewriteCond %{REQUEST_URI} ^/keepyourlinks.com [NC]
RewriteRule ^(.*)$ http://keepyourlinks.com/$1 [L,R=301]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜