Advertisement
Remove "Forgot your username?" and "Forgot your password?"
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.
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.
-
- Joomla! Apprentice
- Posts: 20
- Joined: Fri Dec 18, 2015 8:48 pm
Remove "Forgot your username?" and "Forgot your password?"
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
- AlexVega
- Joomla! Hero
- Posts: 2711
- Joined: Fri Aug 28, 2015 6:13 am
- Location: México
Re: Remove "Forgot your username?" and "Forgot your password
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:
Cheers!
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
-
- Joomla! Apprentice
- Posts: 20
- Joined: Fri Dec 18, 2015 8:48 pm
Re: Remove "Forgot your username?" and "Forgot your password
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?
- AlexVega
- Joomla! Hero
- Posts: 2711
- Joined: Fri Aug 28, 2015 6:13 am
- Location: México
Re: Remove "Forgot your username?" and "Forgot your password
Hi there!
Yes, use the url path, in the example the full url are something like:
Cheers!
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
- leolam
- 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
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
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
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
-
- Joomla! Apprentice
- Posts: 20
- Joined: Fri Dec 18, 2015 8:48 pm
Re: Remove "Forgot your username?" and "Forgot your password
Great, I will have Google re-index the site. Thanks Leo!
-
- Joomla! Apprentice
- Posts: 20
- Joined: Fri Dec 18, 2015 8:48 pm
Re: Remove "Forgot your username?" and "Forgot your password
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:
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.
Code: Select all
Disallow: /component/
- AlexVega
- Joomla! Hero
- Posts: 2711
- Joined: Fri Aug 28, 2015 6:13 am
- Location: México
Re: Remove "Forgot your username?" and "Forgot your password
Hi,
By default, you should already have the line you mention, just check
the correct word:
See the default robots.txt in:
https://github.com/joomla/joomla-cms/bl ... s.txt.dist
Cheers!
By default, you should already have the line you mention, just check
the correct word:
Code: Select all
Disallow: /components/
https://github.com/joomla/joomla-cms/bl ... s.txt.dist
Cheers!
Of course, I mentioned that is an example and he should use the url path:leolam wrote:@ Alex: Links depends if they were indexed with or without SEF enabled
AlexVega wrote:Yes, use the url path, in the example the full url are something like...
-
- Joomla! Apprentice
- Posts: 20
- Joined: Fri Dec 18, 2015 8:48 pm
Re: Remove "Forgot your username?" and "Forgot your password
Hi Alex,
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.AlexVega wrote: By default, you should already have the line you mention, just check
the correct word:See the default robots.txt in:Code: Select all
Disallow: /components/
https://github.com/joomla/joomla-cms/bl ... s.txt.dist
Advertisement