Jump to content

Allowing single module in Robots.txt


ccw0103

Recommended Posts

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:

 

# Directories
Disallow: /*modules/

Link to comment
Share on other sites

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

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

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

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...