httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <i.ga...@brainsware.org>
Subject Re: [users@httpd] Redirect https' 404 to http...
Date Fri, 25 Nov 2011 14:07:51 GMT


----- Original Message -----
> Hi,
> 
> Apache newbie here.
> 
> is there a simple way to redirect all https' 404 to http?
> I searched for some solutions but could not find any...
> 
> Is there a rewrite variable that holds the http return code?
> Something like:
> 
>   RewriteCond %{HTTPS} on
>   RewriteCond %{RETURN_CODE} 404
>   RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}
> 
> 
> Or maybe something like:
>   "If https" do
> 
>     ErrorDocument 404 http://%{HTTP_HOST}%{REQUEST_URI}
> 
>   else
>     ErrorDocument 404 /error/404
> 
> Or do I have to user a custom script with:
>   ErrorDocument 404 /my404.php


I don't get it.
What problem are you trying to solve?

> Thx,
> JD

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message