Re: [users@httpd] Redirects in .htaccess or virtual hosts

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

 



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

Maybe I don't understand what you are saying, but I don't understand
why you need redirects for virtual hosts.  Why don't you just make
the virtual host document root point right to where you want it in 
the first place?

////jerry

> 
> Tnx
> 
> --
> View this message in context: http://www.nabble.com/Redirects-in-.htaccess-or-virtual-hosts-t1391542.html#a3739937
> Sent from the Apache HTTP Server - Users forum at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 


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