Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [SOLVED] prevent indexing of urls with ?
Another way to discourage search engines from indexing such content is with robots.txt:
User-agent: *
Disallow: /?*
Offline
Re: [SOLVED] prevent indexing of urls with ?
Pat64 wrote #327985:
unfortunately,
header
response in my browser isn’t correct. Can you explain to me why? Thanks.
Hi Patrick, try
<txp:header name value="503" />
<txp:header name="Status" value="503 Service Temporarily Unavailable" />
<txp:header name="Retry-After" value="3600" />
Another possibility is nameless headers:
<txp:header name="" value="Retry-After: 3600" />
Offline
Re: [SOLVED] prevent indexing of urls with ?
etc wrote #327987:
[…]
Another possibility is nameless headers:
<txp:header name="" value="Retry-After: 3600" />...
Thanks. Simpler! But, unfortunately, it seems the header response isn’t good (no changes observed into the browser headers viewer)…
kuopassa wrote #327986:
Another way to discourage search engines from indexing such content is with robots.txt:
User-agent: *
Disallow: /?*
Yep! Maybe the simplest and efficient way (I didn’t think of it) Winner 🤘
Last edited by Pat64 (2021-01-03 11:43:31)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline