I have a pretty url like this.
I want to
url if there is no
shoes parameter in the url because without the parameter the page will be redirected to homepage.
So i tried something like this in
I am not sure if the above attempt is correct or not? Or what is the correct way of achieving it?
Best How To :
You can use the $ operator:
The $ means "end of url". Note that the $ operator is not supported by all web robots. It is a common extension that works for all of the major search engines, but it was not part of the original robots.txt standard.
The following will not work:
This will block any URL path that starts with /category/, except when the URL also contains a question mark. This is probably not what you want.