-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx rewrite for changing /wp-login.php to /login #4
Comments
On 2 Out 2012 15h38 CEST, [email protected] wrote: Hello Jasmine,
You can hide the wp-login.php file in order to block direct access:
You can omit the previous location block if you don't want to block --- appa |
Thanks Perusio. I do not want to hide wp-login.php file. My client doesnt want authenticated users on his website knowing that its a wordpress site, hence why i need to rewrite the url to /login and not /wp-login.php |
The mod_rewrite rule, rewrites
|
it is the same site. I'm guessing the solution to my clients problem would be - location ^~ /wp-login.php { |
Yep. That's it. If you want just a 302 redirect omit the 301.
|
thank you very much Perusio, i will try that. |
renaming wp-login.php by redirect rewrite rule not working for multiple websites please help? |
Hi Perusio,
Firstly, thank you for the config. Not really an issue but was wondering what the nginx equivalent of the apache rewrite is -
RewriteRule ^login$ http://YOUR_SITE.com/wp-login.php [NC,L]
Thanks for the help
Jasmine
The text was updated successfully, but these errors were encountered: