Can anyone tell me why my website is re-directing?

Discussion in 'HTML & Website Design' started by Nathan Mclean, Oct 10, 2013.

  1. #1
    I am using my website script I have for a new site and so I have purchased new hosting and uploaded my script from my other host debtfreescotland.org.uk to my new hosting using the domain trustdeedweb.com

    When trying to reach trustdeedweb.com it re-directs to http://www.debtfreescotland.org.uk

    I'm not sure why it's re-directing, I did have a 404 redirect to that page but I changed this in my .htaccess file..
     
    Nathan Mclean, Oct 10, 2013 IP
  2. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #2
    hdewantara, Oct 10, 2013 IP
  3. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #3
    Did you complete a search replace on the database file to remove the old link and replace it with the new one?
     
    HuggyStudios, Oct 10, 2013 IP
  4. Arick unirow

    Arick unirow Acclaimed Member

    Messages:
    719
    Likes Received:
    298
    Best Answers:
    30
    Trophy Points:
    500
    #4
    The answer would be: "Because the domain specifically designed to redirect at debtfreescotland.org.uk for both Human (visitor) and Bots (Search Engine)." (Your server work correctly. It didn't redirect domain, the code in your html is)
    1. There is META Refresh on the site (index file)
      <!DOCTYPE HTML>
      <html>
      <head>
      
      <meta http-equiv="Refresh" content="5; url=http://www.debtfreescotland.org.uk/">
      
      </head>
      </html>
      HTML:
    2. Look at the trustdeedweb.com/robots.txt and you would see the domain is intentionally redirected to debtfreescotland.org.uk (could be caused by using files from Debtfreescotland.org.uk)
    3. Even the sitemap is redirected to trustdeedweb.com/sitemap.xml (could be caused by using files from Debtfreescotland.org.uk).
    What to do to solve the problem:
    1. Just remove the Meta Refresh (if you use html static files)
    2. Check the files and remove unnecessary codes/files.
    Best solution:
    1. In your new hosting, just Delete unnecessary files in your home directory (which belong to domain).
    2. Before copying the files it is best to modify so many codes. It is not that hard and could be done in just less than few hours (half hour is fastest while two days is longest).
    3. You were using static HTML files (Custom site) so it is not that hard to modify the codes. The downside is there would be so much files to modify. I believe you can do this by yourself.
    4. Consider to use Canonical to make it easier for SE to rank your site (not very important in your case)
     
    Last edited: Oct 11, 2013
    Arick unirow, Oct 11, 2013 IP
  5. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #5
    This is .htaccess file issue. Can you please show me?
     
    creativewebmaster, Oct 11, 2013 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #6
    I've seen this before -- to that exact same URL -- you've been hacked by a certain bot. Most likely you had some self modifying code or some other vulnerability. You'll need to do a full code audit first to find all the files that were modified by the hack to get them back to baseline, and then figure out how they got in the door and plug that hole... Is the site built with custom code or an off the shelf system? Does the custom code have injection vulnerabilities -- is the off the shelf system updated to the latest version or is it lagging behind? Is the servers' version of the languages and database engines up to date?
     
    deathshadow, Oct 11, 2013 IP
    Arick unirow likes this.