Results 1 to 3 of 3
  1. #1

    How do they do that. I want to do that toooooo.. redirection

    When I type then it redirects to Similar goes with google.... how do they do that?? I want to do this with my domain too..... is there a tutorial or something available to how to do that....

    Also I have an addon domain which I want to redirect..... For example there are 2 domain names i.e. and abc is main domain and xyx is parked. But when I type then it shows the page..... Is it possible that when people type in their address bar then it doesn't shows page but instead redirect them to

    ps. abc and xyz are not actualy domain, I just put them for example..... please can somebody help me with that????

  2. #2
    Join Date
    Mar 2004
    Cleveland, Ohio
    I beleive on the DNS Server the domain host is set for the www and the root domain is set for an alias to go to www.

    With other domains you just make the alias go to

  3. #3
    Just add this to your .htaccess file

    RewriteEngine On
    Options +SymlinksIfOwnerMatch <<< you may or may not need this line
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www.domain.*
    RewriteCond %{REQUEST_URI} !/subdir/
    RewriteRule ^(.*)$ /subdir/$1
    RewriteCond %{HTTP_HOST} ^domain.*
    RewriteCond %{REQUEST_URI} !/subdir/
    RewriteRule ^(.*)$ /subdir/$1

    RewriteCond %{HTTP_HOST} ^www.domain2.*
    RewriteCond %{REQUEST_URI} !/subdir2/
    RewriteRule ^(.*)$ /subdir2/$1
    RewriteCond %{HTTP_HOST} ^domain2.*
    RewriteCond %{REQUEST_URI} !/subdir2/
    RewriteRule ^(.*)$ /subdir2/$1

    replace domain with you domain name and subdir with your driectory.
    A new Beginning for WebMasters
    WebMasters Forum
    TotalWeb International Net Consulting
    Internet Consulting, Hosting and Business Solutions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts