Jump to content

Mod_Rewrite For A User System


tarun

Recommended Posts

This Is My HTACCESS File

RewriteEngine on 
RewriteBase /
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ getfile.php?user=$1&file=$2

 

 

Basically This An Area Where Users Can Upload Files

And They Can Be Viewed By Going To http://###DomainHidden###.com/Tarun/coolstuff/wow.gif

Or http://###DomainHidden###.com/Tarun/images/family/dad.jpg Or http://###DomainHidden###.com/Tarun/indianstuff/ganesh.doc

 

Ive Done A Simple Test But It Only Works With Something Like:

http://###DomainHidden###.com/Tarun/img.gif

It Just Wont Accecpt Sub Folders (Directories)

 

 

Is There A Way Around This

 

 

 

 

 

 

 

 

 

ANY HELP WILL BE GREATLY APPRECIALtED

 

ThanX,

Tarun

Link to comment
https://forums.phpfreaks.com/topic/63953-mod_rewrite-for-a-user-system/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.