|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
mod_rewrite - Rule not working on production server
Hi Guys,
I'm trying to get a rule working on our production server, it works fine on my WAMP server but not on our main server (Ensim 10.3 RHEL) Code:
RewriteEngine On RewriteRule \.exe /download/ [L] On my dev server it works fine, *.exe is redirected to /download/ On the production server any files that exist are downloaded, if they don't exist they are redirected to /download/.. Also, I want to prevent users from downloading exe's directly, my idea was to make the above rule conditional if the referer was something like /download/ok/.. Is there a way to read from $_SESSION in mod_rewrite?
__________________
Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour and it seems like a minute. That's relativity. - Albert Einstein while($girl=='ugly') { $alcohol++; } |
|
#2
|
|||
|
|||
|
Hello,
> Is there a way to read from $_SESSION in mod_rewrite? I have not tried this myself, but please have a look at apache_setenv() and apache_note(). ![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > mod_rewrite - Rule not working on production server |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|