Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Feb 17th, 2006, 11:29 AM   #1
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 856
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:27 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC