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