.htaccess reroute – lost access to old wp admin
-
Hi everyone,
I made a pretty big mistake. I developed a new website for my company, let’s call it mycompany.com, to replace our mycompany.org website. mycompany.org was created with WordPress and our new website is hosted in cPanel. I tried to reroute the wordpress website using wordpress file manager, adding a reroute to the .htaccess file like so:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*)$ https://newdomain.com/$1 [R=301,L]
</IfModule>But now when I try to access the old website’s wordpress admin, it reroutes me to mycompany.com/wp-admin, which is nonexistent, instead of mycompany.org/wp-admin.
Is there ANY way to fix this?! Please help ??
- The topic ‘.htaccess reroute – lost access to old wp admin’ is closed to new replies.