• I moved my URL from http://mywebsite.com/wordpress to http://wordpress.mywebsite.com.

    The site works fine in all browsers.

    However, I’m loosing rank because my old permalinks are generating 404 errors.

    WordPress is installed in a subdirectory. The basic htaccess file resides in the root.

    I also have another htaccess file that is in the root of my website.

    when I enter

    http://mywebsite.com/wordpress

    I get a 404 error and a comment that the browser is looking for

    http://wordpress.mywebsite.com/wordpress/

    This looks like a combination of the old and new URL.

    If I try an old URL:

    mywebsite.com/wordpress/category/post/

    I get a 404 error.

    Seems like this would be a simple fix, but I am lost. I have also tried redirect plugins that do work for the domain change (mysite.com/wordpress to wordpress.mysite.com) but not for redirecting post.

    Here is the htaccess file in the wordpress root:

    # 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

    My website root htaccess is a simple redirect command that works for my other site pages just not wordpress:

    RewriteEngine On
    RewriteBase /
    Redirect mywebsite.com/wordpress/category/post/ http://wordpress.mywebsite.com/category/post/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you follow the instructions in Allow WordPress to take over the root domain?

    Thread Starter stano7

    (@stano7)

    Yes. Nothing was “moved”. The location of the wordpress site is the same as it always has been. The only thing that has changed is the URL. Many of the post and categories are also the same so the only difference is changing:

    mysite.com/wordpress/

    to

    wordpress.mysite.com/

    The host is now running Apache 2.4

    So you followed all of the steps in the Codex section I linked to above? Including Step 7: “If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure”?

    Thread Starter stano7

    (@stano7)

    It is a custom structure:

    wordpress.mysite.com/%category%/%postname%/

    It is being displayed correctly here.
    I may point out that this is on a GoDaddy server so don’t know about WordPress happing write permissions.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘URL redirect not working’ is closed to new replies.