Support » Fixing WordPress » Error 404 after htaccess – 301 redirect

  • Resolved Anonymous

    I uploaded a .htaccess file to my WordPress root folder, with the following code.

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^ [nc]
    rewriterule ^(.*)$$1 [r=301,nc]
    My intent was to do canonical redirection, that is: redirect visitors from to

    Once I had the .htaccess file in place, except my homepage rest of the pages return a 404 error.

    Any help regarding this would be appreciated.

    My website:

Viewing 2 replies - 1 through 2 (of 2 total)
  • DigitalSquid


    I would guess that you’ve over-written the code in the original .htaccess file that WordPress uses to make it’s permalinks.

    Go to your Control Panel > Settings > Permalinks and check your settings are correct. Then make sure you ‘Save Changes’ and it should update your .htaccess with the permalink code.

    An easy fix, thanks it helped.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error 404 after htaccess – 301 redirect’ is closed to new replies.