开发者

Redirect with .htaccess

开发者 https://www.devze.com 2023-02-02 02:55 出处:网络
i have a pointed domain keepyourlinks.com on my cpanel of piscolabis.info, so if you go topiscolabis.info/keepyourlinks.com/ you acces it and i don\'t want that, i\'m trying:

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

精彩评论

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