htaccess Elite

Hire htaccesselite professional

.htaccess tutorial


All times are UTC - 5 hours





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Redirecting to a default script file
PostPosted: May 17th, '08, 13:57 

Joined: May 17th, '08, 13:53
Posts: 1
How would you make it so anytime a file in a given directory is accessed, it automatically redirects you to a script file within the same directory (passing on the name of the file accessed).

In other words, if you went to:
my-site.com/some_folder/some_file.txt

You get forwarded to:
my-site.com/some_folder/some_script.php?file=some_file.txt


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB