htaccess does not redirect when uploading WordPress

Yesterday, I uploaded a WordPress site on “public_html/wordpress” folder for testing purpose. It worked fine. The URL was “mysite/wordpress“.

But today, I deleted the “wordpress” folder, uploaded WordPress src again to the upper level “public_html” folder. However when I went to “mysite.com“, it still redirects to “mysite/wordpress“. And of course, a 404 error appears because I had previously deleted the “wordpress” folder.

Read More

Even if I typed “mysite.com/index.php“, it still redirected to the wrong place “public_html/wordpress

This is ALL the content of the .htaccess file on “public_html“.

DirectoryIndex index.php

I’m completely new to wordpress, please helps me ASAP.

Related posts

Leave a Reply

1 comment

  1. This is due to permalink configuration in WordPress. If WP admin is loading then visit permalink setting page and change all links to remove /wordpress from URLs.

    If WP admin is not coming up then via PHPMyAdmin update wp_options table to fix all URLs that have /wordpress in them. (option_id=39 is one of them).