Results 1 to 3 of 3
  1. #1
    Euk-George's Avatar
    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

Disclaimer of Liability

The opinions or views posted on our forum by users do not necessarily represent the opinions or views of eUKhost Limited.

Our forum may contain hyperlinks to external websites not under our control and ownership. We do not endorse the content found on any external websites and we cannot guarantee the accuracy, reliability, availability and suitability of such websites and the content of those websites. Your access and use of any external websites is at your sole risk and responsibility. Please also be aware external websites will have differing terms and conditions, privacy and cookie usage policies to our website.