Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 5 of 5
  1. #1
    Platinum Lifetime Member
    HomerJ's Avatar
    Join Date
    Sep 2006
    Location
    Austin, Texas
    Posts
    1,600
    Country

    Mexico Follow HomerJ On Twitter
    DNF$
    7,895
    Bank
    0
    Total DNF$
    7,895
    Donate  

    will wrestle for help with 301 redirect from old domain to new domain

    i'm trying to set up .htaccess so it redirects every single individual page on the old domain to the corresponding page on the new domain, since that is what Google and SEO experts seem to be recommending from what i've read.

    the trouble is every example i've come across is seemingly different, there does not seem to be one definitive example for the situation that i can find. i'm suffering informational overload :(

    using my .htaccess file can any give a proper tutorial so that i can do the following

    redirect:
    domain1.com/page1 -> domain2.net/page1
    domain1.com/page2 -> domain2.net/page2
    domain1.com/page3 -> domain2.net/page3
    etc.
    DomainAnimal.com
    Patience is a virtue

  2. #2
    Platinum Lifetime Member
    liberator's Avatar
    Join Date
    Jan 2007
    Location
    Canada
    Posts
    646
    Country

    Canada
    DNF$
    891
    Bank
    0
    Total DNF$
    891
    Donate  
    Hey HomerJ,

    I'm assuming apache with mod rewrite on?

    Code:
    RewriteEngine On
    RewriteCond %{HTTPS} =on
    RewriteRule .* https://www.YOUR NEW DOMAIN HERE.com%{REQUEST_URI} [R,L]
    RewriteCond %{HTTPS} !=on
    RewriteRule .* http://www.YOUR NEW DOMAIN HERE.com%{REQUEST_URI} [R,L]
    Just save as .htaccess and put in the root directory of the old site and it should redirect all traffic to the corresponding pages, including https pages

    Cheers,

    Jay
    Canadian Registrar ~~ Ready.ca

  3. #3
    Platinum Lifetime Member
    HomerJ's Avatar
    Join Date
    Sep 2006
    Location
    Austin, Texas
    Posts
    1,600
    Country

    Mexico Follow HomerJ On Twitter
    DNF$
    7,895
    Bank
    0
    Total DNF$
    7,895
    Donate  
    Hi Liberator, thanks very much for the help. one thing though, i was going by this article from webmaster central (as well as other SEO blogs i have read)

    http://googlewebmastercentral.blogsp...your-site.html

    Don't do a blanket redirect directing all traffic from your old site to your new home page. This will avoid 404 errors, but it's not a good user experience. A page-to-page redirect (where each page on the old site gets redirected to the corresponding page on the new site) is more work, but gives your users a consistent and transparent experience
    would your example be considered a blanket redirect? I am really looking for the pattern/template for what i would copy & paste (and then change for each page) to redirect all pages at the individual page level, if this makes sense
    DomainAnimal.com
    Patience is a virtue

  4. #4
    Platinum Lifetime Member
    HomerJ's Avatar
    Join Date
    Sep 2006
    Location
    Austin, Texas
    Posts
    1,600
    Country

    Mexico Follow HomerJ On Twitter
    DNF$
    7,895
    Bank
    0
    Total DNF$
    7,895
    Donate  
    okay, it seems it was not the user this time, but it was the fault of the tool! (no, not me )

    i had been using the right code all along and for some reason uploading the .htaccess over the old one was not rewriting that file, because i discovered that when i downloaded it after reuploading it none of the changes were there!

    so what i did was went into cpanel file manager and used the editor there which edits the file directly, added the code of the form like

    Code:
    Redirect 301 /old/old.html http://www.you.com/new.html
    then it worked as expected!

    if i ever catch that damn gremlin (wringing fist in the air)
    DomainAnimal.com
    Patience is a virtue

  5. #5
    Platinum Lifetime Member
    liberator's Avatar
    Join Date
    Jan 2007
    Location
    Canada
    Posts
    646
    Country

    Canada
    DNF$
    891
    Bank
    0
    Total DNF$
    891
    Donate  
    Glad you have it working the way you want it
    Canadian Registrar ~~ Ready.ca

Tags for this Thread

Bookmarks

Posting Permissions

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

Domain name forum recommended by Domaining.com