httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Redirects in .htaccess or virtual hosts
Date Tue, 04 Apr 2006 13:32:10 GMT
On 4/4/06, MarcelSmeets <m.smeets@snow.nl> wrote:
>
> Hi,
>
> I have a redirect question. In the .htaccess file we use on one of our
> servers we want about 400 redirects of the form
>
> Redirect /anyplace/anyfile /anotherplace/anotherfile
>
> And this for about 20 virtual hosts ( so 20 .htaccess files)
>
> I have searched everywhere, but apache requires this form
>
> Redirect /anyplace/anyfile http://qualified-url/someplace/somefile
>
> And this is rather a maintenance-problem. All the .htaccess-files need
> different qualified-url in the redirected link and if you change things in
> one you just can not copy the changed .htaccess but have to change all the
> files manually.
>
> Does anybody know an easy work-around or genius solution for this?

mod_rewrite can set this dynamically.

And I believe that the newest versions of apache will allow a
non-fully-qualified url, but I can't remember for sure.

Joshua.

---------------------------------------------------------------------
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