About 6 months ago we updated the robots.txt file to stop blocking the templates and media folders as google now needs access to them.
For various sensible reasons we do NOT change the robots.txt file on a live site when it is being updated. However I am seeing lots of people (twitter, forum and joomladays) not realising that and then complaining about the current robots file on their site.
Is it possible to create a post install message to inform them of the new robots file and how to apply it to their site
(Sorry I don't know how to create post-install messages myself)
Currently they are introduced by SQL. Which means adding the message to joomla.sql in installation/sql/ and to .sql in administrator/components/com_admin/sql/updates/.
Have a look at 3.2.2-2014-01-15.sql for an example
It also requires two language strings (TITLE & DESCRIPTION). In addition you need to decide on the other settings for the message. Considering the nature if of the message think you can use COM_CPANEL_WELCOME_BEGINNERS as a template.
Would there be a need for a message on htaccess.txt as well?
@brianteeman Could you create COM_CPANEL_MSG_ROBOTS_TITLE and COM_CPANEL_MSG_ROBOTS_BODY in en-GB.com_cpanels.ini for this PR?
I'll create PR's for you for the sql files.
Thanks. I will do in the morning
On 27 Nov 2014 00:06, "sovainfo" notifications@github.com wrote:
@brianteeman https://github.com/brianteeman Could you create
COM_CPANEL_MSG_ROBOTS_TITLE and COM_CPANEL_MSG_ROBOTS_BODY in
en-GB.com_cpanels.ini for this PR?
I'll create PR's for you for the sql files.—
Reply to this email directly or view it on GitHub
#5208 (comment).
COM_CPANEL_MSG_ROBOTS_TITLE="robots.txt update"
COM_CPANEL_MSG_ROBOTS_BODY="A change to the default robots.txt files was made in Joomla! 3.3 to allow google to access templates and media files by default to improve SEO. This change is not applied automatically on upgrades and users are recommended to review the changes in the robots.txt.dist file and implement these change in their own robots.txt file."
Thanks
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5208.
Status | New | ⇒ | Closed |
Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/5208
@brianteeman see here: #5223
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5208.
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-11-27 15:47:20 |
Labels |
Added:
?
|
I agree with this, I think a post-install message would be a good way of alerting users to this as it's quite a sensitive file. As one of the people confused on Twitter I hadn't actually realised and was asking for help. This would clear things up I'd hope.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5208.