Results 1 to 7 of 7
  1. #1
    Affiliate Manager
    Join Date
    January 18th, 2005
    Posts
    1,056
    Calling all htaccess gurus please
    I am changing my site to a shorter domain and need to redirect the pages from the old domain to the same pages on the new domain... while telling the SE's about the new domain (permanent change).

    Like such:

    Redirect from:

    http://www.mybiglonghonkingdomain.com/script.php?id=234

    Redirect to:
    http://www.mydomain.com/script.php?id=234

    All the pages on both domains have the exact names... so the only thing that will be changed is the domain name.

    Thanks

  2. #2
    http and a telephoto
    Join Date
    January 18th, 2005
    Location
    NYC
    Posts
    17,708
    I do that at the registrar, never redirected an entire domain via htaccess.
    Deborah Carney
    TeamLoxly.com BookGoodies.com ABCsPlus.com

  3. #3
    Affiliate Manager
    Join Date
    January 18th, 2005
    Posts
    1,056
    This seems to work...
    Anyone know if I would be ok with this?

    RewriteEngine On
    RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

  4. #4
    Member
    Join Date
    December 6th, 2006
    Location
    na
    Posts
    173
    Quote Originally Posted by Chet_B
    This seems to work...
    Anyone know if I would be ok with this?

    RewriteEngine On
    RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
    that's fine.

    let us know how it works out - 301s of whole sites are always interesting to watch..

  5. #5
    Affiliate Manager
    Join Date
    January 18th, 2005
    Posts
    1,056
    Does it matter if I keep the files on the old domain or not?

  6. #6
    Member
    Join Date
    December 6th, 2006
    Location
    na
    Posts
    173
    nope.
    Mod_Rewrite comes in before Apache looks for files to be served.

    oziman

  7. #7
    Lite On The Do, Heavy On The Nuts Donuts's Avatar
    Join Date
    January 18th, 2005
    Location
    Winter Park, FL
    Posts
    6,930
    some good tips here, covering both moving to a new host and (at the bottom) moving to a new domain name.

    http://www.mattcutts.com/blog/moving-to-a-new-web-host/

  8. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Affiliate gurus
    By SickFade in forum Midnight Cafe'
    Replies: 14
    Last Post: March 4th, 2011, 04:56 PM
  2. Google Gurus I need Help :)
    By esquire2010 in forum Newbie Affiliate FAQs & Helpful Articles
    Replies: 4
    Last Post: July 6th, 2010, 09:50 PM
  3. Any .htaccess rewriterule Gurus around?
    By Uncle Rico in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: August 24th, 2008, 08:20 AM
  4. Calling Excel Gurus
    By mrbshouse in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: March 31st, 2007, 10:50 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
  •