Buying HELP! I need a correct .htaccess redirect from old domain to new domain

Discussion in 'Services' started by duanehaas, Feb 1, 2010.

  1. #1
    I have had to change my site from http://dailyfailblog.com to http://failfun.com and I need a correct .htaccess file to point everything from dailyfailblog.com to the correct page on failfun.com

    The dailyfailblog.com will be in my same hosting account, but I had to switch it from my primary domain to a secondary domain and make failfun.com a primary domain on godaddy hosting. If you check the sites they are not working properly and I need a fix tonight!

    Please help!

    This is my current .htaccess file

    rewriteengine on
    rewritecond %{HTTP_HOST} ^www.dailyfailblog.com$ [OR]
    rewritecond %{HTTP_HOST} ^dailyfailblog.com$
    rewriterule ^(.*)$ "http\:\/\/failfun\.com\/$1" [R=301,L] #4b6777dbeb171
    rewritecond %{HTTP_HOST} ^www.dailyfailblog.org$ [OR]
    rewritecond %{HTTP_HOST} ^dailyfailblog.org$
    rewriterule ^(.*)$ "http\:\/\/failfun\.com$1" [R=301,L] #4b6777ba1be5e
    
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteBase /
    </IfModule>
    # END WordPress
    #
    <IfModule mod_gzip.c>
    mod_gzip_on         Yes
    mod_gzip_dechunk    Yes
    mod_gzip_item_include file          \.(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler       ^cgi-script$
    mod_gzip_item_include mime      ^text\.*
    mod_gzip_item_include mime      ^application/x-javascript.*
    mod_gzip_item_exclude mime      ^image\.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </IfModule>
    rewritecond %{REQUEST_FILENAME} !-f
    rewritecond %{REQUEST_FILENAME} !-d
    rewriterule . /index.php [L]
    rewritecond %{REQUEST_FILENAME} !-f
    rewritecond %{REQUEST_FILENAME} !-d
    rewriterule . /index.php [L]
    rewritecond %{REQUEST_FILENAME} !-f
    rewritecond %{REQUEST_FILENAME} !-d
    rewriterule . /index.php [L]
    rewriterule ^(.*)wp-content/uploads/(.*) $1watermark.php?src=wp-content/uploads/$2
    
    Code (markup):
    Currently I have it redirected correctly, but I can't login to my wordpress and all of the internal links of the site are all pointing towards dailyfailblog.com still
     
    Last edited: Feb 1, 2010
    duanehaas, Feb 1, 2010 IP
  2. flamer

    flamer Peon

    Messages:
    757
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    What control panel is present on your old website? In Cpanel, the redirect option with wild card will make your job easier if you have the option. I'll let you know the code if you want to go the harder way, although If you have cpanel, then I would not recommend you the .htaccess modification.
     
    flamer, Feb 1, 2010 IP
  3. Hosting-Pal

    Hosting-Pal Peon

    Messages:
    230
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    still need any help?
     
    Hosting-Pal, Feb 1, 2010 IP
  4. osmasters

    osmasters Well-Known Member

    Messages:
    453
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    100
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    If we do redirect from cpanel then i think google can not redirect pagerank to respected pages, will it?
     
    osmasters, Feb 2, 2010 IP
  5. duanehaas

    duanehaas Active Member

    Messages:
    153
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    I set it up in the .htaccess folder and had to fix something else this morning. Does anyone know of a if command popup box (if they got redirected there something about asking them to change their bookmarks)?
     
    duanehaas, Feb 2, 2010 IP
  6. duanehaas

    duanehaas Active Member

    Messages:
    153
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    Well I don't know whats wrong with it now... it seems to be messed up again, so I do still need help
     
    duanehaas, Feb 2, 2010 IP
  7. flamer

    flamer Peon

    Messages:
    757
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    It maybe looping on if you do wildcard redirect. Check on that code.
     
    flamer, Feb 2, 2010 IP
  8. Istvan

    Istvan Well-Known Member

    Messages:
    1,544
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    175
    As Seller:
    100% - 4
    As Buyer:
    100% - 1
    #8
    Have you changed the urls in the sql database? In wp_option table (if I'm not wrong) there are two values storing the site url.
     
    Istvan, Feb 5, 2010 IP