how to redirect different domains to my website

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mukeshrasm
    Contributor
    • Nov 2007
    • 254

    #1

    how to redirect different domains to my website

    Hi

    I want to redirect different domains which I have to my newly created website using dotnetnuke. As it is currently working on this site bytes.com(when user type thescripts.com it redirects user to bytes.com)
  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2433

    #2
    We are using an apache redirect.

    If you are using Apache it's easy to setup.

    Create a .htaccess file with the following,
    Code:
    Options +FollowSymLinks 
    RewriteEngine on
    
    RewriteCond %{HTTP_HOST} ^www.olddomain.com$ [NC]
    RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
    niheel @ bytes

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      I don't know the answer to this but Kub has the right idea...he's just using the wrong web server technology as an example :)

      You will need to configure your IIS server to redirect all incoming requests to your old domain to your new domain.

      -Frinny

      Comment

      Working...