Closed Thread
Results 1 to 7 of 7

Thread: .htaccess 301 redirect help

  1. #1
    skeets's Avatar
    skeets is offline x10Hosting Member skeets is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    39

    .htaccess 301 redirect help

    Hi, I recently got myself a domain name, and I'd like to switch my google listings from http://skeets.x10hosting.com/ to http://www.skeetshd.com/

    I've read about htaccess 301 redirects but I can't get it to work. I put in:

    redirect 301 / http://www.skeetshd.com/

    and Firefox spits out:

    The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept cookies.

    IE loads the main page, but I have IFRAMES on it, and it won't load the content of those pages. It also won't load any link I try to click.


    Any help to how I can redirect everyone to http://www.skeetshd.com/ ?? Thanks!

  2. #2
    rockee is offline x10 Sophmore rockee is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    120

    Re: .htaccess 301 redirect help

    Try this as I use these rules for a production site hosted on another server which works in all browsers and is Google friendly:
    RewriteEngine on
    rewritecond %{http_host} ^skeets.x10hosting.com [nc]
    rewriterule ^(.*)$ http://www.skeetshd.com/$1 [r=301,nc]
    Incidentally, when I tested your X10 sub domain in my browser it resulted in redirecting to your main domain and showing the main domain address in my browser - SeaMonkey - just as you are trying to do.
    Tip, empty your browser's cache from time to time when developing.

    Regards,
    Rocky
    Last edited by rockee; 05-04-2008 at 07:24 PM.

  3. #3
    skeets's Avatar
    skeets is offline x10Hosting Member skeets is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    39

    Re: .htaccess 301 redirect help

    Never mind, I figured it out...

    I just used the code designed to add a www. to the front of the URL...

    RewriteEngine On
    rewritecond %{http_host} ^skeets.x10hosting.com
    rewriteRule ^(.*) http://www.skeetshd.com/$1 [R=301,L]

    Edit: Thanks Rocky, you posted while I was typing.

    Will Google eventually change its URLs over to skeetshd.com?
    Last edited by skeets; 05-04-2008 at 07:21 PM.

  4. #4
    rockee is offline x10 Sophmore rockee is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    120

    Re: .htaccess 301 redirect help

    You have control over the GoogleBot by going to their site and registering, logging in and finding the Webmasters tools - great place for you to make sure all is well for the GoogleBot to spider your site.

    Regards,
    Rocky

  5. #5
    skeets's Avatar
    skeets is offline x10Hosting Member skeets is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    39

    Re: .htaccess 301 redirect help

    I've done that, but I registered as skeets.x10hosting.com, and I don't see any magic renaming button... I was fooling with all this 301 stuff so I wouldn't have to delete what they've already indexed.

  6. #6
    rockee is offline x10 Sophmore rockee is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    120

    Re: .htaccess 301 redirect help

    Just create your new main domain with the WebMaster tools, add the meta tag and the site map and GoogleBot will spider your main domain.
    This is standard proceedure.

    If you prefer you can delete your sub-domain.

    Have you changed the main domain at X10 so there is no need to mess with redirect?

    http://forums.x10hosting.com/tutoria...ed-domain.html

    http://forums.x10hosting.com/tutoria...g-domains.html

    Regards,
    Rocky

  7. #7
    skeets's Avatar
    skeets is offline x10Hosting Member skeets is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    39

    Re: .htaccess 301 redirect help

    I added the new domain in the AMP but also parked skeets.x10hosting.com in Cpanel, so that links there would still work. I suppose I could just delete that parked domain.

    Thanks for explaining all this. Domains have been by far the most confusing part of this whole process, including teaching myself PHP and MySQL.

Closed Thread

Similar Threads

  1. Redirect
    By BlueIce in forum Free Hosting
    Replies: 3
    Last Post: 10-21-2007, 08:06 AM
  2. default .htaccess
    By Fedlerner in forum Computers & Technology
    Replies: 9
    Last Post: 09-05-2007, 09:10 PM
  3. Cpanel Redirect problem
    By BigEmmaFanz in forum Free Hosting
    Replies: 5
    Last Post: 12-10-2005, 04:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers