Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder Psionicsin's Avatar
    Join Date
    Aug 2010
    Location
    Detroit, Michigan
    Posts
    349
    Thanks
    54
    Thanked 0 Times in 0 Posts

    How to achieve this type of redirect?

    Not sure what kind of redirect this is called, but I was on Pixar's website and decided to see if any other Pixar domains names were taken (don't ask me why).

    Regardless of what I entered (pixar.net, pixar.org, pixar.co.uk, pixar.co, etc), the page, without even refreshing, just toook me right to pixar.com. There was no blank page first telling me that I was being redirected. There was no website within a frame, and best of all...the URL I enetered (ie pixar.net) is immediately replaced with pixar.com.

    Is this just achieved through the .htaccess? If so, what's the correct method/name of this type of redirect?

    I'm trying to redirect my example.net and example.org to my example.com site. All of their DNS names are pointed to my hosting server, and the domains are entered in my hosts domain manager.
    Last edited by Psionicsin; 09-05-2012 at 04:46 PM.

  • #2
    Regular Coder Psionicsin's Avatar
    Join Date
    Aug 2010
    Location
    Detroit, Michigan
    Posts
    349
    Thanks
    54
    Thanked 0 Times in 0 Posts
    Or do I even need to do this since they're parked domains that are all pointing to my "Home Directory" anyway?

    When I do the *.org address however, it redirects to *.com...but the address still says *.org.
    Last edited by Psionicsin; 09-05-2012 at 05:02 PM.

  • #3
    Regular Coder Psionicsin's Avatar
    Join Date
    Aug 2010
    Location
    Detroit, Michigan
    Posts
    349
    Thanks
    54
    Thanked 0 Times in 0 Posts
    With...

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^cleartouchvisuals.net$ [OR]
    RewriteCond %{HTTP_HOST} ^cleartouchvisuals.org$
    RewriteRule ^(.*)$ http://www.cleartouchvisuals.com/$1 [R=301]
    I'm getting this error when I visit my regular *.com: Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

  • #4
    Regular Coder Psionicsin's Avatar
    Join Date
    Aug 2010
    Location
    Detroit, Michigan
    Posts
    349
    Thanks
    54
    Thanked 0 Times in 0 Posts
    Ok I've gotten a bit further. I'm using this in my htaccess now:

    Code:
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^(www\.)?cleartouchvisuals\.net
    RewriteRule (.*) http://www.cleartouchvisuals.com/$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^(www\.)?cleartouchvisuals\.org
    RewriteRule (.*) http://www.cleartouchvisuals.com/$1 [R=301,L]
    Seems to be doing what I need, and not causing any redirect loops with my regular *.com, however the *.org and *.net still aren't rewritten.

  • #5
    Regular Coder Psionicsin's Avatar
    Join Date
    Aug 2010
    Location
    Detroit, Michigan
    Posts
    349
    Thanks
    54
    Thanked 0 Times in 0 Posts
    Ok I got it using this instead:

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} \.net$ [OR]
    RewriteCond %{HTTP_HOST} \.org$ [OR]
    RewriteCond %{HTTP_HOST} ^cleartouchvisuals.com$
    RewriteRule ^(.*)$ http://www.cleartouchvisuals.com/$1 [R=301,L]
    But is this the absolute correct way to do this without any consequences to SEO or anything else like that?


  •  

    Posting Permissions

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