How do I fix this

conor

Member
Hi,
I have been doing my SEO and auditing my website. I'm wanting to put no follow/hide on the .co.uk/userlogin + .co.uk/cart + and the currency bit what says GBP or USD in the string URL I have put no follow on the account page but it is still showing after a month of doing this.
 

cpams322

New Member
Are you using robots.txt file in your root directory? If not, try that. Start notepad and place the following in your new text file.

Code:
User-agent: *
Disallow: /userlogin/
Disallow: /cart/

The above blocks all bots (who respect robots.txt) from those directories and any files and subdirectories.
If you ONLY want to block Google from those pages then use instead both...

Code:
User-agent: Google
Disallow: /userlogin/
Disallow: /cart/

User-agent: googlebot
Disallow: /userlogin/
Disallow: /cart/

I use both Google and googlebot to block google because some say to use one, some say the other. I just use both to be sure in separate blocks.

Save as robots.txt file then upload the file to your root directory using FTP program like FileZilla or similar.

and the currency bit what says GBP or USD in the string URL

I have no Idea what you mean by this. But if you mean you want to block bots from
Code:
/cart/?cur=USD
I think
Code:
Disallow: /cart/
covers this. But I may be wrong. There are lots of tutorials on robots.txt files. Just google "robots.txt".
http://www.robotstxt.org/robotstxt.html
 
Top