New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Robots.txt Disallow
So I wanna disallow access to "www.myurl.com/?page_id=3373" in the robots.txt of my WordPress site.
Do I just go about this like I would if the page name was smth. like "testsite"?
Disallow: /testsite/
And therefor:
Disallow: /?page_id=3373/
Or would I leave out the "?" ?
A bit confused with WordPress' permalink structure.
Comments
Probably this:
You can search "Disallow dynamic URLs in robots.txt" on the web, that's what you're trying to achieve more or less.
I usually just use:
http://tools.seobook.com/robots-txt/generator/
If you are trying to disable dynamic URLs, consider https://en.wikipedia.org/wiki/Canonical_link_element
Thanks That's what I did^^ Should be fine then hehe^^
@Ympker
Disallow: /link/to/page/or/post
also, I suggest to use a better URL structure.