Forum Moderators: phranque
RewriteRule ^([1-9][0-9]*)/*.* [domain.com...]
even if users could access the pages spiders get a 404 status code.
Could you help?
:-( it gives me back an internal server error...
I bet gergoe's code was correct, before the space preceeding the exclamation mark was removed by the forum software. Add a space, and re-test.
Also *sometimes* you need the following to precede the RewriteCond/Rule:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
Also, what did you mean when you said "even if users could access the pages spiders get a 404 status code"
As a side note. 404s can be a good thing. If you never return 404, then a smart spider will know not to waste it's time fetching pages from an infinite namespace.
[edit]I just realized that the ".*" should be replaced by ".", to ensure there is at least one character in the request path[/edit]
---- Also, what did you mean when you said "even if users could access the pages spiders get a 404 status code"...
I mean that the pages are visible, surfers could see all the documents according to their requests even if accessing them the returning code was 404 instead of 200 or 304... and this wasn't a good thing for the project.
Thanks again!