View Single Post
Old Feb 17th, 2006, 11:29 AM   #1
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 843
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
Apache Internal Redirect Help

Hi,

I've been stuck on this problem for about a year now. Say I have a directory named /foo containing HTML files I want to display. How can I internally redirect any requests for files at the root (/) directory to those files in the /foo directory?

For example, if a request is made for http://www.mysite.com/page.html, how can I display the contents of http://www.mysite.com/foo/page.html without changing the URL in the user's browser?

I've tried using .htaccess scripts to internally rewrite any requests, but for some reason this never works for the root directory; I always get a "500 Internal Server Error."

Any help? Thanks.
titaniumdecoy is offline   Reply With Quote