WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Redirection to new domain problem

[Resolved] Redirection to new domain problem

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

    I’ve copied across all the files for http://www.blog.rlaschool.com to my new domain, http://www.reallifeattraction.com 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 blog.rlaschool.com 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 (.*) http://www.newdomain.com/$1 [R=301,L]

    Placed after RewriteEngine on

    I thought all of this was working fine. Upon viewing http://www.blog.rlaschool.com 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)
  • webjunk
    Participant

    @webjunk

    As the site is not running WordPress not sure what you are trying to do.

    My apologies.

    http://www.blog.reallifeattraction.com missed out the subdomain.

    Bump, still having trouble with this.

    Bump again. Still can’t find the problem.

    webjunk
    Participant

    @webjunk

    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 http://www.blog.reallifeattraction.com in general settings. I presume that must have been changed by the plugin I used.

    webjunk
    Participant

    @webjunk

    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]
    </IfModule>
    
    # END WordPress
    webjunk
    Participant

    @webjunk

    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 ‘[Resolved] Redirection to new domain problem’ is closed to new replies.