I was in process of deploying my WordPress website mysite.com/NewSite
to mysite.com
during the deployment I messed up something and my main site has started redirecting from mysite.com
to mysite.com/NewSite
.
I have deleted everything from root folder, checked cPanel redirects section etc but everything looks fine. I also created .htaccess file under public_html folder but still no luck.
# 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 web site is presently down.
2
Answers
Update the options table in MySQL database (in phpmyadmin …)
Most options are also available in WP admin, but in your case you cannot access wp-admin right now
Make sure these two settings in your “options” table are correct:
From the database admin, you could update them with:
EDIT: If you’ve already changed these settings, and confirmed that there isn’t a .htaccess redirect happening, the next place to look is in the web server’s configuration for any redirects. These could have been previously placed in the VirtualHost configuration file for example.