1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Redirect Old Posts Not Working

Discussion in 'Apache' started by kertoon, May 5, 2017.

  1. #1
    I have changed my site domain. The redirect to the domain and all the internal links have changed and working fine.
    But when I tried those indexed URLs from Google, they all return 404 Error.
    So is when I tried changing the URLs with the new domain to old domain.
    They all return 404 error.
     
    kertoon, May 5, 2017 IP
  2. zibolin

    zibolin Greenhorn

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    8
    #2
    Try some ready to use redirect script - in case it's wordpress search for redirect addon.
     
    zibolin, May 6, 2017 IP
  3. kertoon

    kertoon Well-Known Member

    Messages:
    181
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #3
    What and where can I get those ready to use redirect script?
     
    kertoon, May 6, 2017 IP
  4. GameO.Over

    GameO.Over Active Member

    Messages:
    45
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    65
    #4
    Can you share some examples?

    where is the redirect? old domain? new domain? what are you searching for in Google to return broken links? can we see your redirect code?

    We can't really help with the information you have given.
     
    GameO.Over, May 6, 2017 IP
  5. kertoon

    kertoon Well-Known Member

    Messages:
    181
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #5
    Old domain: malaysiannews.info
    new domain: inforuckus.com
    The redirection of the domain name is working fine. But when I enter any of blog post URL with the old domain, it shows 404 Not Found.

    ex: http://malaysiannews.info/activate-maybank-visa-debit-card-online-purchases/
     
    kertoon, May 6, 2017 IP
  6. GameO.Over

    GameO.Over Active Member

    Messages:
    45
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    65
    #6
    I do not get a 404 when I search google for malaysiannews.info/activate-maybank-visa-debit-card-online-purchases/ It redirects me to: http://inforuckus.com - The same happens if I access it directly.

    malaysiannews.info successfully redirects to inforuckus.com

    it looks like you have set a 301 redirect everything from malaysiannews.info to http://inforuckus.com

    Which could be quite bad as you have essentially told Google, any page from malaysiannews.info has moved to http://inforuckus.com

    Can we see your redirect code?
     
    GameO.Over, May 6, 2017 IP
  7. kertoon

    kertoon Well-Known Member

    Messages:
    181
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #7
    Here is the code:
    RewriteEngine on
    Redirect 301 /activate-maybank-visa-debit-card-online-purchases inforuckus.com/activate-maybank-visa-debit-card-online-purchases
    RewriteCond %{HTTP_HOST} ^malaysiannews\.info$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.malaysiannews\.info$
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^/?$ "http\:\/\/inforuckus\.com" [R=301,L]

    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule .*\.()$ - [F,NC]

    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule .*\.()$ - [F,NC]
    RewriteCond %{HTTP_HOST} ^malaysiannews\.info$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.malaysiannews\.info$
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^stage\-illusion\-plans\-paul\-osborne\-free\-download$ "http\:\/\/inforuckus\.com\/stage\-illusion\-plans\-paul\-osborne\-free\-download" [R=301,L]
    RewriteBase /
    RewriteBase /

    ErrorDocument 404 http://inforuckus.com
     
    kertoon, May 7, 2017 IP
  8. GameO.Over

    GameO.Over Active Member

    Messages:
    45
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    65
    #8
    GameO.Over, May 7, 2017 IP
  9. kertoon

    kertoon Well-Known Member

    Messages:
    181
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #9
    I have it fixed. I have deleted away all those rules and replaced with a new code. It is working perfectly now. Thank you for all your assistance and concern.
     
    kertoon, May 7, 2017 IP
  10. GameO.Over

    GameO.Over Active Member

    Messages:
    45
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    65
    #10
    Glad you got it sorted :)
     
    GameO.Over, May 8, 2017 IP