• Coin HELP!

    (@coinauctionshelp)


    [ Moderator note: moved to How-to and Troubleshooting. ]

    I used web design software to created web pages then uploaded them directly to the root directory.

    Since I installed wordpress into this same directory because I want that to be the software for my site and where I create new pages.

    What I want to do is redirect the old pages to new pages in the wordpress but when I create a .htaccess with 301 redirect in the root, it breaks the .htaccess in the wordpress and gives a 404 error and when I change it back the error becomes a 500.

    I can fix the 500 by rebuilding the .htaccess in wordpress. Also I do use the wordpress as my home landing page already if that has any bearing on the issue. I deleted the index in the root to do that.

    Any help would be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey CoinAuctionsHelp,

    There are a few easy ways you can create redirects from the old pages to the new:

    1. Install a WordPress plugin like Redirection, which allows you to enter the old and new URLs and it’ll take care of the redirections and even log the number of times it’s used.

    The benefit is it’s really easy.

    2. Create redirects on your hosting account. Given the choice, I’ll almost always create the redirects at the hosting account level because the redirect happens at the server level before WordPress even loads.

    Many hosting platforms, like cPanel give you a way to create redirects. Otherwise, you can Google .htaccess 301 redirects and you’ll find some code examples you might try.

    Note: The redirects need to come before the standard WordPress block in .htaccess.

    Adding the redirects should have no bearing on your permalinks, so you shouldn’t have to rebuild.

    If you continue having trouble, you may want to make sure the old .html files are removed from the root of your site, in case they interfere in your hosting environment.

    Hope that helps.

    Thread Starter Coin HELP!

    (@coinauctionshelp)

    I did create a redirect and it resulted in a 404, then I removed the redirect and this resulted in the page I was redirecting to as a 500. When I set my permalink to default then back to custom the page came was visit-able again without errors.

    So somewhere along the line the 301 redirect is causing an issue with wordpress urls.

    The pages and I redirecting from are NOT wordpress, but they are being directed to wordpress urls with same content. At least I am trying to make that happen.

    Thanks for the response.

    Hey CoinAuctionsHelp,

    If you want to post the code of your .htaccess file with and without your rewrite rules, I’m happy to take a look.

    Otherwise try that Redirection plugin and see if that works for you. Might save a bit of headache.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘301 Redirects’ is closed to new replies.