htaccess does not redirect when uploading Wordpress

Hoang Lam

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.

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.

anubhava

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).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

htaccess 301 redirect in wordpress

From Dev

Wordpress redirect and htaccess

From Dev

301 redirect with htaccess in wordpress

From Dev

WordPress - Forcing SSL with .htaccess leads to redirect loop when using Polylang

From Dev

.htaccess does not redirect

From Dev

Wordpress and htaccess redirect to another url

From Dev

website htaccess redirect conflict with wordpress

From Dev

htaccess redirect - wordpress code conflict

From Dev

website htaccess redirect conflict with wordpress

From Dev

Wordpress htaccess 301 redirect issue

From Dev

htaccess does not redirect primary URI

From Dev

img does not work for htaccess redirect

From Dev

htaccess redirect if does not start with folder

From Dev

.htaccess redirect does not take place

From Dev

htaccess 404 redirect does not working

From Dev

htaccess redirect when there's no files

From Dev

Wordpress htaccess redirect top level domain to directory

From Dev

Redirect URLs from Wordpress with ?post= or ?cat= in htaccess

From Dev

htaccess redirect of php page to wordpress page

From Dev

WordPress with WooCommerce .htaccess category redirect to external page

From Dev

.htaccess 301 redirect not working on WordPress site

From Dev

Redirect all tag pages in WordPress using .htaccess

From Dev

.htaccess redirect from old Joomla to Wordpress

From Dev

default wordpress htaccess causing redirect loop

From Dev

Using htaccess to redirect http to https for Wordpress?

From Dev

Wordpress: htaccess redirect (301) doesnt work

From Dev

htaccess redirect of php page to wordpress page

From Dev

Parking domains redirect to landing page wordpress htaccess

From Dev

301 redirect not working via .htaccess within WordPress

Related Related

HotTag

Archive