• Hi Everyone
    I recently did an htaccess redirect of my wp site, making the http:// myaddress.com go to http:// www .myaddress.com (added spaces to remove link) . The redirect itself works, but now I cannot access the admin panel. I’ve reverted to the original htaccess file and still can’t access it.All it shows is a blank page.

    here is the original htaccess:

    # Use PHP5 as default
    AddHandler application/x-httpd-php5 .php
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    my modified htaccess:

    # Use PHP5 as default
    AddHandler application/x-httpd-php5 .php
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    RewriteCond %{HTTP_HOST} ^myaddress.com.com
    RewriteRule (.*) http://www.myaddress.com/$1 [R=301,L]

    Any help would be greatly appreciated!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter coche09

    (@coche09)

    Any ideas anyone?
    I’ve deleted the htaccess file, and tried the login but it still gives me a white page. I’ve reuploaded the original file but still no luck.

    If I visit http://myaddress.com/wp-login.php, I DO see the login page. If i try to login –> blank page.

    I’ve only been been able to find info on the redirect loop bug, the solutions point at deleting the htaccess then changing the url… but still can’t see dashboard after deleting htaccess.

    Does this sound like some issue with the database?

    Thanks a million

    Thread Starter coche09

    (@coche09)

    I managed to fix the issue:
    Renamed the current theme folder in order to revert to the default theme. This allowed me to log in to the admin panel. Then re-activated the theme i was using before and voila.

    No clue why the theme broke after htaccess, but that resolved it for me.

    This solution worked great. Thanks for posting.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘htaccess redirect, now can’t access admin panel’ is closed to new replies.