apache rewrite debian vs windows
Posted
by
user1079002
on Server Fault
See other posts from Server Fault
or by user1079002
Published on 2012-12-13T03:21:47Z
Indexed on
2012/12/13
5:06 UTC
Read the original article
Hit count: 537
I have simple rewrite rules as I just learned about them
RewriteEngine On
RewriteRule ^dl/(.*)/.*$ dl/$1/index.php [L]
RewriteRule ^index.php$ upload.js [L]
both are working on Windows for url localhost/upload/dl/mkdji/index.php
, but on Debian works only second rule for url www.domain.com/index.php
, but not for www.domain.com/dl/oksoks/index.php
After dl
is some random string.
Obviously I'm missing something regarding directory depth, but don't know what. file htacces is in localhost/upload
and root of domain.com folders.
What am I missing here?
© Server Fault or respective owner