+ Reply to Thread
Results 1 to 4 of 4

Thread: Parked Domain Redirect

  1. #1
    Join Date
    May 2007
    Posts
    4

    Default Parked Domain Redirect

    I recently registered for a domain and hosting service with bluehost. After everything had cleared, I registered another domain through bluehost and parked it with the original domain. So right now, both www.a.com and www.b.com both go to the same site. The problem I'm having is that they retain their web address. What I would like to happen is if a user types, www.a.com, they go to www.a.com but if a user types www.b.com, the website they will end up at (the one displayed in the address bar) is www.a.com.


    I think that made sense

    Thanks

  2. #2

    Default

    how familiar are you with .htaccess modifications? you can do what you want there

    also, if your scripts are written in PHP, there is a "domain check" you can have the page run to make sure it is at the right address. I used both when i moved my site to bluehost, and had the domain name change as well.

  3. #3
    Join Date
    May 2007
    Posts
    4

    Default

    Um, I am not familiar but I plan on becoming familiar tomorrow. I'll let you know if this served as a kick in the right direction.

  4. #4
    Join Date
    May 2007
    Posts
    4

    Default

    What do you know, it's 1 am and technically tomorrow... anyways, I found and messed around with the .htaccess file. After trying the redirect keyword multiple ways, I eventually stumbled onto this block of 'code'

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} OtherDomain.com$   [NC] 
    RewriteRule ^(.*)$  http://www.DesiredDomain.com/$1   [R]
    I understand what this does, I don't specifically understand the syntax and how it does it, but in the end it does it.

    Any foreseen issues with this route?

+ Reply to Thread

Posting Permissions

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