skip to Main Content

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


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

    Login or Signup to reply.
  2. Make sure these two settings in your “options” table are correct:

    siteurl
    home
    

    From the database admin, you could update them with:

    update wp_options set option_value='http://example.com' where option_name='siteurl';
    update wp_options set option_value='http://example.com' where option_name='home';
    

    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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search