WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess redirect, now can't access dashboard (1 post)

  1. megann_cr42
    Member
    Posted 1 year ago #

    I recently added this code so that all incoming links with the extension .php will go to their designated page. So http://www.example.com/about.php will go to http://www.example.com/about/

    RewriteCond %{THE_REQUEST} ^(GET|HEAD|POST)\ /(.*)\.php($|\ )
    RewriteRule ^ /%2/ [L,R=301]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/(.*?)/?$
    RewriteCond %{DOCUMENT_ROOT}/%1.php -f
    RewriteRule ^ /%1.php [L]

    This code works, however I can't login to access the dashboard. I put the username/password in and nothing happens, it just stays on wp-login.php. Any help would be great!

Topic Closed

This topic has been closed to new replies.

About this Topic