Results 1 to 3 of 3

Thread: Simple RewriteRule to set redirect for domain.

  1. #1
    Euk-George is offline Employee
    Join Date
    Oct 2008

    Default Simple RewriteRule to set redirect for domain.

    We can set redirect for domain by using following RewriteRule entry in .htaccess
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^$ [OR]
    RewriteCond %{HTTP_HOST} ^$
    RewriteRule ^(.*)$$1 [R=301,L]

    The above entry redirect the domain to

  2. #2
    sb123 is offline Freelance Editor for eUKhost Ltd.
    Join Date
    Dec 2007


    Thank you. I wanted this code for a long time now. And all the time, it was right under my nose here!

  3. #3
    atashajules is offline Forum Member
    Join Date
    Apr 2009


    Thank you, I appreciate the information you have given, as well as the codes you have shared with me. Your expertise and help have been invaluable.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
About eUKhost
We're a Leeds-based web hosting provider specialising in Linux- and Windows-based hosting solutions now serving over 35,000 customers worldwide. Across our network, we host over 2 million websites in our state-of-the-art data centres in Reading, Maidenhead and Milton Keynes. Find out more.
we're social

Copyright © 2014, 2015. eUKhost Ltd. All rights are reserved.

The opinions or views of users on the forum are those of the author and not of eUKhost Ltd.