Jump to content

Help with robots.txt and Friendly URL


Recommended Posts

Hello,

If my .htaccess looks like this

RewriteRule ^bg/guest-tracking$ /guest-tracking.php?isolang=bg [QSA,L]
RewriteRule ^bg/search$ /search.php?isolang=bg [QSA,L]
RewriteRule ^bg/zabravena-parola$ /password.php?isolang=bg [QSA,L]



How exactly must be my robots.txt?

Disallow: /guest-tracking.php
Disallow: /search.php?
Disallow: /password.php



Thanks

P.S. Sorry for my english
P.S.2 Google indexed xxx.com/bg/guest-tracking & etc.

Link to comment
Share on other sites

Hi Foreverz,

I'm assuming /bg/ is based on a language pack? Do you have multiple languages on your store or just one?

Disallow: /bg/



This would prevent indexing of any files within the /bg/ directory and sub directories.

If you just have the one language however, you can disable/delete the unused language packs, and recreate your robots.txt and .htaccess files using the Back Office generators, and they will create your URLs without the /bg/ sub directory.

Link to comment
Share on other sites

Hi Mark,

Thank you response! Yes /bg/ is a language pack I deleted the unused language packs, recreate my robots.txt and .htaccess files using the Back Office generators. Everything working fine.

One question about renamed friendly url like this

RewriteRule ^zabravena-parola$ /password.php [QSA,L]



How exactly must be my robots.txt?

Disallow: /password.php[QSA,L]



Thanks

Link to comment
Share on other sites

×
×
  • Create New...