Kindly put me through

Posted in: Newsmag
Post count: 30

For instance, if my wordpress website is abc.com, when someone visit abc.com/admin it takes them to the login page.
Is there a way to disable this page from displaying when /admin is added?

Post count: 9544

Might want to google that as not theme related.

Post count: 30

I know, but the result I’m getting from google links are quite different, they’re talking mostly about admin bar for logged in users. That’s why I though that I should ask here

Post count: 9544

Right…
Well, you can try adding this to top of your htaccess file


RewriteRule ^secret/?$ /wp-login.php [QSA,L]

And change word secret to the word you want to use to login with, which will change your login url to
Yoursite/secret

Or look at plugins in the wordpress repository to change login location.

Secret should be lowercase and not same as any page, post, admin, plugin, or category name.

Weird thing is thar /admin is not normal login for wordpress, but i have same issue. Possibly simply adding a 301 redirect for /admin to index.php might work, too.

I can also recommend the limit login attempts plugin for security.

  • This reply was modified 11 years by simchris.
Post count: 9544

Also not sure if making a post called admin would work or not, and not going to try that on live site.

Post count: 30

thank you so much, I’ll try it out.

Post count: 9544

I’m inclined to make an empty directory called /admin/ and then put in a htaccess file in there with 301 redirect to home page. Hmmm…..

You are very correct, sir. It’s an annoying thing!

Post count: 82

Or you could try another plugin called Hide my WP or something like that 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newsmag’ is closed to new topics and replies.