Support » Fixing WordPress » Redirection to new domain problem

  • Resolved RLAJay


    I’ve spent all day trying to do this and it’s been a nightmare.

    I’ve copied across all the files for to my new domain, using ftp.

    I’ve set up a new database and ensured wpconfig on the new wordpress points to the new database, I’ve copied the database from and put it there. I’ve been through the database and changed all URLs using a URL change plugin.

    I have set up the .htaccess (now removed because the site is broken) file to 301 redirect to the new domain using the following snippet:

    RewriteRule (.*)$1 [R=301,L]

    Placed after RewriteEngine on

    I thought all of this was working fine. Upon viewing I was getting redirected perfectly to the new domain. The problem is that is the ONLY thing that was working, I have just realised that absolutely none of the posts are there in reality when you try to click through to them. Only the homepage works.

    What have I done wrong? I could really use some help with this.

Viewing 10 replies - 1 through 10 (of 10 total)
  • As the site is not running WordPress not sure what you are trying to do.

    My apologies. missed out the subdomain.

    Bump, still having trouble with this.

    Bump again. Still can’t find the problem.

    Kinda looks like you have the URL’s set to the old domain in Wp-admin/GENERAL/Settings

    CHeck that first.
    Be aware bumping may actually get you ignored. We are all just volunteers on here and have our own websites to work on.

    I’ll take a look, thanks for the response.

    Not sure what I ought do other than bump to get response. Not bumping after the topic has fallen off the second page guarantees it’ll get no response.

    EDIT: That’s not it, the site addresses are set to in general settings. I presume that must have been changed by the plugin I used.

    What is in your .htaccess? (Put into Pastebin if its large)

    The current htaccess is:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    Try turning your Permalinks off.

    Wait a second, I think you may have found the problem for me. It appears I made an error, I had absolutely no htaccess file on the new domain.

    Adding a htaccess appears to have fixed it all, here’s hoping it stays that way.

    Marking as resolved, thanks for the help webjunk! You lovely helpful person you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Redirection to new domain problem’ is closed to new replies.