User tests: Successful: Unsuccessful:
Google recently updated its Webmaster Guidelines: https://support.google.com/webmasters/answer/35769?hl=en#technical_guidelines
"To help Google fully understand your site's contents, allow all of your site's assets, such as CSS and JavaScript files, to be crawled. The Google indexing system renders webpages using the HTML of a page as well as its assets such as images, CSS, and Javascript files."
Google has made clear statements that websites should not be preventing robots from accessing stylesheets and javascript files to assess the quality of pages and their suitability for different devices.
The JUI CSS/JS files are currently stored in /media along with similar files from many extensions, which is currently excluded by our standard robots.txt file which ships with Joomla by default. This is in contravention to these guidelines and causes Joomla sites to flag warnings on the Mobile Friendly test: https://www.google.com/webmasters/tools/mobile-friendly/.
This PR removes /media from the robots.txt file, thereby allowing robots to index the contents of this folder and complying with Webmaster Best Practice Guidelines.
There should also be consideration given to removing /images however given the current use of this directory as the primary upload directory for media, I will submit it in a separate PR so that they can be discussed separately.
There could be content within the media directory which users do not wish to be spidered by search engines.
Before applying patch, check /media is in the robots.txt disallow list. After applying, it should not be there.
Labels |
Added:
?
|
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-11-28 03:02:40 |
yeah it was changed about 6 month ago but we didnt do a good jobat informing people. Please can you help test #5223 which adds a post install message to inform people
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5231.
Ack, just realised my vcs branch didn't have the latest robots file and it's already been done, so closing.