skip to Main Content

I have multiple domains I want to do the redirect.
Domains:

  • domains.de
  • domains.fr
  • domains.my
  • domain.uk

I want to setup redirect these domains to

Thank for you answer

2

Answers


  1. Chosen as BEST ANSWER

    @Raahul Is there a better way to combine all the domains

    RewriteEngine On
                RewriteCond %{HTTP_HOST} ^domains.(de|fr|my|uk)$
                RewriteRule ^$ https://www.domains.de/(de|fr|my|uk).html [L,R=301]
    

    can it work this way?


  2. RewriteEngine On
                RewriteCond %{HTTP_HOST} ^domains.de$
                RewriteRule ^$ https://www.domains.de/de.html [L,R=301]
    


    Refer Links to write .htaccess

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search