.htaccess redirect, now can't access dashboard
-
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!
- The topic ‘.htaccess redirect, now can't access dashboard’ is closed to new replies.