Web Hosting Talk







View Full Version : Alias Question


marksy
04-25-2001, 08:29 PM
What would the syntax be to Alias a dir for every site to another dir in that site, i.e http://www.site.com/somedir/ would pull from or forward to http://www.site.com/someotherdir/subdir/

Can this be done in apache config files without individually adding a symbolic link or other per site directive? Thanks!

lenix
04-25-2001, 11:23 PM
ScriptAlias /cgi-bin /usr/local/apache/blah
hence

marksy
04-26-2001, 11:35 AM
Yeah but that is only for a constant location - I'm wondering for a link to a subdir within a site applicable to all sites across the server (ie changing doc path depending on the site)

jeff
04-26-2001, 04:37 PM
for forwarding

redirect /dir /dir/subdir

marksy
04-26-2001, 05:02 PM
that's the stuff..thanks