htaccess rewrite to new domain

前端 未结 1 905
一个人的身影
一个人的身影 2020-12-21 21:38

I have this:

Options -Indexes
RewriteEngine On
RewriteCond %{HTTP_HOST} ^findmyfiver\\.com$ 
RewriteRule (.*) http://www.findmyfiver.com/$1 [L,R]


        
相关标签:
1条回答
  • 2020-12-21 22:27
    Options -Indexes
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^findmyfiver\.com$ 
    # Add a rule to rewrite tester.php to a different domain
    # Before your other catch-all rule
    RewriteRule ^tester\.php http://findmyfiver.co.uk/tester.php [L,R=301,QSA]
    RewriteRule (.*) http://www.findmyfiver.com/$1 [L,R]
    
    0 讨论(0)
提交回复
热议问题