[Apache] mod_rewrite

Master Summoner
Joined
Nov 14, 2004
Messages
533
Reaction score
1
Having some trouble with this ****, and it's starting to piss me off.

Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/download
RewriteRule ^/download/(.*)$ /download.php?file=$1
RewriteRule ^/(.*)$ /index.php?dir=$1 [L]

Any ideas on how to make it work?


[Fd]
 
I'm not using XAMPP, and the problem is that it doesn't work.

Update:
Code:
RewriteEngine on
RewriteBase /
RewriteRule ^([A-Za-z0-9-_/\\:]+)?$ /index.php?dir=$1 [L]
RewriteRule ^download/(.*)?$ /dl.php?file=$1

Sort-of works, need the index rewrite to include all visible characters.


[Fd]
 
Back