Skip to content

code-flow/WP-Login-Limitation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

WP-Login-Limitation

Produces an error 404 when accessing wp-login.php without a parameter.

###1. Add these lines to your .htaccess file.

<IfModule mod_rewrite.c>	 	 
  RewriteEngine On	 	
  RewriteCond %{REQUEST_FILENAME} wp-login.php	 	 
  RewriteCond %{QUERY_STRING} !(access=yes)|(action=logout)	 
  RewriteRule . - [R=404,L,NS]	 	 
</ifModule>

###2. Install and activate the plugin. ###3. Call your wp-login.php like this: http://example.com/wp-login.php?access=yes

Read more about this here (German language only): http://hinterland.florian-simeth.de/wp-login-php-umleiten-falls-kein-php-parameter-angegeben-wurde/

About

Redirects a call to wp-login.php if a PHP-Parameter is missing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages