1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help with redirecting please?

Discussion in 'Apache' started by ZuraX, Apr 12, 2006.

  1. #1
    I have a few dozen domains I wish to now point to one site.
    I have given up on all but one or two of my sites now since I have way less time to come online.

    In my .htaccess I have

    Options +FollowSymLinks
    RewriteEngine on
    Redirect 301 / http://www.mymaindomain.net/

    which works. But /whatever or /whatever.html(.php etc) still looks for a 404 error. Is there a way to redirect Everything to http://www.mymaindomain.net/?

    Like http://www.olddomain.com or http://www.olddomain.com/whatever.php to just http://www.mymaindomain.net/?

    I want to set up one account on my VPS for olddomain.com and park all my old domaisn on top of it and they all use the same .htaccess and redirect to http://www.mymaindomain.net/
     
    ZuraX, Apr 12, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^([^.]+)$ http://www.domain.com/$1 [R=301,L]
     
    Nintendo, Apr 12, 2006 IP
  3. ZuraX

    ZuraX Active Member

    Messages:
    156
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Weird now its not working at all :(
     
    ZuraX, Apr 12, 2006 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    Not sure if this'll do it.

    Options +FollowSymLinks
    RewriteEngine on
    Redirect 301 /([^.]+) http://www.mymaindomain.net/$1
     
    Nintendo, Apr 12, 2006 IP