Advertisement

Remove "Forgot your username?" and "Forgot your password?"

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
matthewbaker
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Fri Dec 18, 2015 8:48 pm

Remove "Forgot your username?" and "Forgot your password?"

Post by matthewbaker » Sat Dec 26, 2015 1:08 pm

When I search for my site on Google, the first two results that come up are the "Forgot your username?" and "Forgot your password?" pages. I didn't even know my site had these pages, as I am not allowing user registration and I have no need for user registration. How can I remove these pages from my site (and make Google show my site's home page as the first result instead)?

Advertisement
User avatar
AlexVega
Joomla! Hero
Joomla! Hero
Posts: 2711
Joined: Fri Aug 28, 2015 6:13 am
Location: México

Re: Remove "Forgot your username?" and "Forgot your password

Post by AlexVega » Sun Dec 27, 2015 6:35 am

Hi there!

One posible solution is add the path for every page in robots.txt
you can find this file in the root folder of your site, use something
like:

Code: Select all

#Don't forget to review the correct names
Disallow: /password-reset
Disallow: /username-reminder
Cheers!

matthewbaker
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Fri Dec 18, 2015 8:48 pm

Re: Remove "Forgot your username?" and "Forgot your password

Post by matthewbaker » Sun Dec 27, 2015 2:42 pm

Hi Alex, thanks for your reply. I checked out the default robots.txt supplied by Joomla and it disallows access to the /components/ directory, which is where the username and password pages are. Google is still listing those links on the first page when I search for my site. Should I specify the full path in robots.txt?

User avatar
AlexVega
Joomla! Hero
Joomla! Hero
Posts: 2711
Joined: Fri Aug 28, 2015 6:13 am
Location: México

Re: Remove "Forgot your username?" and "Forgot your password

Post by AlexVega » Mon Dec 28, 2015 12:26 am

Hi there!

Yes, use the url path, in the example the full url are something like:

Code: Select all

#  yoursite.com/password-reset
Disallow: /password-reset

#  yoursite.com/username-reminder
Disallow: /username-reminder
Cheers!

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20658
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: Remove "Forgot your username?" and "Forgot your password

Post by leolam » Mon Dec 28, 2015 4:44 am

Your site was indexed by Google when you installed Joomla and made the development. Just disable the user registration in User Manager which should be sufficient and should not lead to indexing by any search engine.

You can go to Wwebmaster Tools at Google and have theme re-index your site so these will be gone

@ Alex: Links depends if they were indexed with or without SEF enabled

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

matthewbaker
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Fri Dec 18, 2015 8:48 pm

Re: Remove "Forgot your username?" and "Forgot your password

Post by matthewbaker » Mon Dec 28, 2015 1:52 pm

Great, I will have Google re-index the site. Thanks Leo!

matthewbaker
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Fri Dec 18, 2015 8:48 pm

Re: Remove "Forgot your username?" and "Forgot your password

Post by matthewbaker » Mon Jan 11, 2016 7:49 pm

It's been a few weeks and I've had Google re-index the site. Now, unfortunately, the user login page at http://mydomain.com/component/users is showing up in search results, and I don't want it to because I don't have any users on my site. I'm going to try adding the following line to robots.txt:

Code: Select all

Disallow: /component/
Is there a way I can just permanently delete this page? I already disabled user registration so I thought this sort of thing wouldn't be an issue.

User avatar
AlexVega
Joomla! Hero
Joomla! Hero
Posts: 2711
Joined: Fri Aug 28, 2015 6:13 am
Location: México

Re: Remove "Forgot your username?" and "Forgot your password

Post by AlexVega » Tue Jan 12, 2016 4:06 am

Hi,

By default, you should already have the line you mention, just check
the correct word:

Code: Select all

Disallow: /components/
See the default robots.txt in:
https://github.com/joomla/joomla-cms/bl ... s.txt.dist

Cheers!
leolam wrote:@ Alex: Links depends if they were indexed with or without SEF enabled
Of course, I mentioned that is an example and he should use the url path:
AlexVega wrote:Yes, use the url path, in the example the full url are something like...

matthewbaker
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Fri Dec 18, 2015 8:48 pm

Re: Remove "Forgot your username?" and "Forgot your password

Post by matthewbaker » Tue Jan 12, 2016 3:48 pm

Hi Alex,
AlexVega wrote: By default, you should already have the line you mention, just check
the correct word:

Code: Select all

Disallow: /components/
See the default robots.txt in:
https://github.com/joomla/joomla-cms/bl ... s.txt.dist
That line is already in my robots.txt. However, the URL that shows up on Google is mydomain.com/component/users and not /components/users.

Advertisement

Locked

Return to “Administration Joomla! 3.x”