-
[Apache] mod_rewrite
Having some trouble with this shit, 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]
-
Re: [Apache] mod_rewrite
Are you using xampp?
Oh and btw, whats ur problem ? xD
-
Re: [Apache] mod_rewrite
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]
-
Re: [Apache] mod_rewrite
mod_rewrite module enabled ?
-
Re: [Apache] mod_rewrite
-
Re: [Apache] mod_rewrite
http://forum.modrewrite.com/viewforum.php?f=12
Maybe that will help some, that's where I learned how to use it