Jump to content

Google mobile theme test -- blocked banner images


Recommended Posts

In the default PS theme (v1.6.0.14), the banner images for the home page are sourced from /modules/themeconfigurator/img/.

 

A Google mobile test reveals that these image resources are blocked by robots.txt (Disallow: */modules/).

 

https://www.google.com/webmasters/tools/mobile-friendly/

 

Does anyone have a good solution? Hack up the image storage/fetch code in themeconfigurator.php in order to store/source the image files somewhere else? It looks as though it's going to be a messy hack, but that would probably be better than allowing the 'modules' path in robots.txt?

 

Putting re-directs in the .htaccess (i.e. storing the images elsewhere but leaving img src as modules/themeconfigurator/img in the home page HTML) might also be a solution.

 

The same problem exists for: 

 

/modules/blockstore/store.jpg

/modules/homeslider/images/

/modules/productpaymentlogos/img/payment-logo.png

 

etc.

Edited by finlanderid (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...