|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
mjenning Smarty n00b
Joined: 04 Nov 2012 Posts: 1
|
Posted: Sun Nov 04, 2012 3:17 pm Post subject: google crawl errors |
|
|
Hi,
I am seeing thousands of google crawl errors, each one is a compiled smarty file with a name like, %%FD^FDF^FDFCA620%%file.tpl.php
So what I think is happening is that google is crawling a compiled smarty file, but the name has changed by the next time google crawls the page.
Is it possible to remove the string prepended to the filename?
Any suggestions?
Many thanks
Mark |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Nov 04, 2012 4:12 pm Post subject: |
|
|
Google should not at all crawl compiled or cached template files.
These folders should be excluded by the robot.txt file on the server. |
|
Back to top |
|
cbj4074 Smarty Regular
Joined: 10 Nov 2011 Posts: 49
|
Posted: Mon Nov 12, 2012 10:16 pm Post subject: |
|
|
My humble opinion is that your Smarty template files should exist outside of the Web-server's document root altogether. There's no reason for your template files to be accessible via HTTP request. |
|
Back to top |
|
douglassdavis Smarty Junkie
Joined: 21 Jan 2008 Posts: 541
|
Posted: Tue Nov 13, 2012 12:19 am Post subject: Re: google crawl errors |
|
|
when you say google crawl error, you mean you can search for your compiled templates in google and get results?
how is it even finding them I wonder? If you don't want to move your compiled templates to outside of doc root, then at least block files in that dir from being browsed and make sure you aren't allowing browsers to view your directory listings. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Nov 13, 2012 2:46 am Post subject: |
|
|
even if compiled files were under the htdoc root, there should be no links to them, unless you allow directory indexes on the web server and have a link to that page. that said, it is a generally good idea to keep them out of htdocs, or deny direct access with "deny from all" rules in .htaccess or apache config. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|