? Success

User tests: Successful: Unsuccessful:

avatar RCheesley
RCheesley
28 Nov 2014

Background

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.

Possible implications

There could be content within the media directory which users do not wish to be spidered by search engines.

Test instructions

Before applying patch, check /media is in the robots.txt disallow list. After applying, it should not be there.

avatar RCheesley RCheesley - open - 28 Nov 2014
avatar jissues-bot jissues-bot - change - 28 Nov 2014
Labels Added: ?
avatar RCheesley
RCheesley - comment - 28 Nov 2014

Ack, just realised my vcs branch didn't have the latest robots file and it's already been done, so closing.

avatar RCheesley RCheesley - close - 28 Nov 2014
avatar RCheesley RCheesley - change - 28 Nov 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-11-28 03:02:40
avatar brianteeman
brianteeman - comment - 28 Nov 2014

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.

Add a Comment

Login with GitHub to post a comment