ccw0103 Posted April 22, 2016 Share Posted April 22, 2016 Hello, I tried adding the code but it doesnt seem to work, any idea what went wrong? # Directories Disallow: */modules/ Allow : /modules/nameofthemodule/ Link to comment Share on other sites More sharing options...
selectshop.at Posted April 22, 2016 Share Posted April 22, 2016 Please generate your robots.txt from back-office and add lines if needed. Modules are not catched by Google with native Prestashop robots.txt. Which problem are you having ? Can you please give more details on it ? PS: the line you added is wrong. It should be: # DirectoriesDisallow: /*modules/ Link to comment Share on other sites More sharing options...
selectshop.at Posted April 22, 2016 Share Posted April 22, 2016 If you want to allow only one module you should add (and please read my topic before, your line added is wrong). Allow: /*whatever/other OR for non-Google bots: Allow: /whatever/other Directives for robots.txt: https://en.wikipedia.org/wiki/Robots_exclusion_standard Perhaps your bot is a fake-bot and these do not follow any rules. Please give more details on your problem. PS: * is a placeholder/wildcard, some of the search-bots do not recognize this, better is to use: Disallow: /modules/ instead of Disallow: /*modules/ (native Prestashop) Architecture for pages is: Disallow: /controller=guest-tracking Disallow: /tag= Architecture for files is: Disallow: /yourfile.php Link to comment Share on other sites More sharing options...
ccw0103 Posted April 22, 2016 Author Share Posted April 22, 2016 If you want to allow only one module you should add (and please read my topic before, your line added is wrong). Allow: /*whatever/other OR for non-Google bots: Allow: /whatever/other Directives for robots.txt: https://en.wikipedia.org/wiki/Robots_exclusion_standard Perhaps your bot is a fake-bot and these do not follow any rules. Please give more details on your problem. PS: * is a placeholder/wildcard, some of the search-bots do not recognize this, better is to use: Disallow: /modules/ instead of Disallow: /*modules/ (native Prestashop) Architecture for pages is: Disallow: /controller=guest-tracking Disallow: /tag= Architecture for files is: Disallow: /yourfile.php Hi, Thanks for the reply. But the robots is from back office generation, even i generate a new robots, it still looks like this: Disallow: /*controller=search Disallow: /*controller=statistics Disallow: /*controller=attachment Disallow: /*controller=guest-tracking # Directories Disallow: */classes/ Disallow: */config/ Disallow: */download/ Disallow: */mails/ Disallow: */modules/ So if I want to allow a single module, my code should be # Directories Disallow: */classes/ Disallow: */config/ Disallow: */download/ Disallow: */mails/ Disallow: */modules/ Allow: /*modules/modulename is this correct?? Link to comment Share on other sites More sharing options...
ccw0103 Posted April 22, 2016 Author Share Posted April 22, 2016 I tried Allow: /*modules/modulename and tested on google robots tester and it works! and I also tried testing modules and it was blocked with Disallow: */modules/ any idea? Link to comment Share on other sites More sharing options...
selectshop.at Posted April 22, 2016 Share Posted April 22, 2016 Yes. better is to omit the * which is a placeholder, cause only Google can read this. Allow: /modules/modulename is the correct line FOR ALL Search engines (excl. spam-bots, which do not follow any rules in robot.txt). Which Prestashop version are you using ? # Directories Disallow: */classes/ Disallow: */config/ Disallow: */download/ Disallow: */mails/ Disallow: */modules/ Don't seems to be correct. Link to comment Share on other sites More sharing options...
selectshop.at Posted April 22, 2016 Share Posted April 22, 2016 You are using more than one language ? Than correct line for directories are correct. Link to comment Share on other sites More sharing options...
ccw0103 Posted April 26, 2016 Author Share Posted April 26, 2016 You are using more than one language ? Than correct line for directories are correct. Yes, I am using three languages in fact.... so it should be alright now??? Should I remove the *?? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now