Re: Redirecting temporarily all pages to /

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bj a écrit :
> Check if your index.hml and if any ErrorDocument directives are not
> interacting.

No, it's a very simple  httpd.conf, no ErrorDocument, almost no module
actually, only the basic minimum to display a warning message.

> and try with Rewrite :
> RewriteEngine On
> 
> RewriteCond %{REQUEST_URI} ^/.+$ [NC]
> RewriteCond %{REQUEST_URI} !^/$ [NC]
> 
> RewriteRule ^/.* http://www.google.fr [L,R=302]

That works, redirecting everything to /. Well, I wanted to follow the
Best Practice, which recommends using RedirectMatch in that case, and
it's one more module to load, but that will do fine.

Thanks for your help!

Laurent
-- 
/ Leader de Projet & Communauté    | I'm working, but not speaking for
\ G11N   http://fr.opensolaris.org | Bull Services http://www.bull.com
/ FOSUG  http://guses.org          |

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux