control 404
3 posts
• Page 1 of 1
control 404
Hi,
I have this rule to control special characters like á , é... ñ, etc.
RewriteRule .*(?:ã|ú|ó|í|é|á|ñ).* /include/404.asp [NC,R=301,L]
The problem is that this rule, "redirect" to the page 404.asp and google interprets like redirection 301 (Status moved permanent). I want "response status 404".
I try in this way.
RewriteRule .*(?:ã|ú|ó|í|é|á|ñ).* /include/404.asp [NC,R=404,L]
Now i have the status 404 but i can't see the page 404.asp to personalize the message. I have this message.
Not Found
The requested URL http://www.mydomain.com/include/404.asp was not found on this server.
The page is correct in the location before mentioned, i dont know why the message "not found"
Plaese your help.
regards.
Edison Paspuel
I have this rule to control special characters like á , é... ñ, etc.
RewriteRule .*(?:ã|ú|ó|í|é|á|ñ).* /include/404.asp [NC,R=301,L]
The problem is that this rule, "redirect" to the page 404.asp and google interprets like redirection 301 (Status moved permanent). I want "response status 404".
I try in this way.
RewriteRule .*(?:ã|ú|ó|í|é|á|ñ).* /include/404.asp [NC,R=404,L]
Now i have the status 404 but i can't see the page 404.asp to personalize the message. I have this message.
Not Found
The requested URL http://www.mydomain.com/include/404.asp was not found on this server.
The page is correct in the location before mentioned, i dont know why the message "not found"
Plaese your help.
regards.
Edison Paspuel
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: control 404
Hello,
you can't d it like that. You're redirecting the page, so the status can't be simply 404.
You may try this module to create customized error pages - http://www.helicontech.com/ape/doc/mod_ ... orDocument, however it will give 302 code, but not 400.
Regards
Andrew
you can't d it like that. You're redirecting the page, so the status can't be simply 404.
You may try this module to create customized error pages - http://www.helicontech.com/ape/doc/mod_ ... orDocument, however it will give 302 code, but not 400.
Regards
Andrew
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests