• 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 ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    You can undo the change .htaccess file.

    Thread Starter sarahmariecarter

    (@sarahmariecarter)

    How do I get to it? I changed the .htaccess in the mycompany.org/wp-admin file manager plugin, but I can’t get to that plugin anymore because it reroutes me to mycompany.com/wp-admin which doesn’t exist ??

    Moderator t-p

    (@t-p)

    I changed the .htaccess in the mycompany.org/wp-admin file manager plugin,

    Access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/plugins/file manager plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘.htaccess reroute – lost access to old wp admin’ is closed to new replies.