VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: EIF on October 21, 2021, 12:41:56 PM

Title: Best robot.txt for virtuemart?
Post by: EIF on October 21, 2021, 12:41:56 PM
I am using the standard joomla dist robot.txt for a website of a client.
But what is the best robot.txt (for SEO) for virtuemart.

I read about adding the following lines:

Allow: /modules/mod_virtuemart_cart/assets/
Allow: /components/com_virtuemart/assets/


Are there more recommendations?
Title: Re: Best robot.txt for virtuemart?
Post by: jjk on November 01, 2021, 19:39:55 PM
I've been using these additional lines in the past few years:

Allow: /templates/yourtemplate/
Allow: /images/
(Note: I'm using a short image path for my VM shop. Yours probably is different)
Allow: /components/com_virtuemart/assets/css/jquery.fancybox-1.3.4.css
Allow: /components/com_virtuemart/assets/js/
Allow: /components/com_virtuemart/assets/images/vmgeneral/
User-Agent: Googlebot
Allow: *.js
Allow: *.css

Seems to work pretty well.