You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Greg <gr...@ito-y.com> on 2006/09/28 18:34:46 UTC

[users@httpd] configure a catchall page for a website subdirectory?

hi,
I'm new to Apache, but I need a way to configure all page requests inside a 
specific website subdirectory to be directed to the same page regardless of 
what page is requested, yet preserving the url that was requested in the
browser's address bar. Kinda like a 'catchall' page for only that folder but 
keeping the url they requested intact.


thanks,
Greg 


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


Re: [users@httpd] configure a catchall page for a website subdirectory?

Posted by Steve Swift <st...@gmail.com>.
Alias /subdir/* full-path-to-page

Should do the trick. If you're worried about people entering the "subdir"
part in upper- or mixed-case then you can use:

AliasMatch /[Ss][Uu][Bb][Dd][Ii][Rr]/.* full-path-to-page

There may be a better way to do case-insensitive matching, if so I'd be glad
to learn it!

On 28/09/06, Greg <gr...@ito-y.com> wrote:
>
> hi,
> I'm new to Apache, but I need a way to configure all page requests inside
> a
> specific website subdirectory to be directed to the same page regardless
> of
> what page is requested, yet preserving the url that was requested in the
> browser's address bar. Kinda like a 'catchall' page for only that folder
> but
> keeping the url they requested intact.
>
>
> thanks,
> Greg
>
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
Steve Swift
http://www.swiftys.org.uk