httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr Kloc" <...@rdl.pl>
Subject [users@httpd] 301 redirect
Date Tue, 18 May 2010 22:02:38 GMT
Hello !
Can I set the redirect 301 not in .htaccess but in apache conf ?
I have tried to set this

RewriteEngine on
RewriteRule ^webmail/(.*)$ http://somedomain.com/webmail/$1 [R=301,L]

and it doesnt work 
if I put this in .htaccess it does

I want to set redirect  directory for all my vhosts http://domain/webmail  > 301 redirect
> someanotherdomain/webmail


Regards,
Piotr

Mime
View raw message