Topic: Appache -> ISAPI Translation problems
|

|
| Author |
|
schorsch Newbie

Joined: 29 September 2008
Online Status: Offline Posts: 4
|
| Posted: 29 September 2008 at 5:30am | IP Logged
|
|
|
Hy
I need to run on ISAPI:
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) /papiermuseum/de/index.php
How does it need to be written in ISAPI 3.0 ?
Thanks!
|
| Back to Top |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 673
|
| Posted: 29 September 2008 at 8:27am | IP Logged
|
|
|
Hi,
Actually your rules are already prepared for ISAPI_Rewrite 3.x
But, let me to provide the rules with a small correction:
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? /papiermuseum/de/index.php [NC,L]
|
|
|
__________________ Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
|
| Back to Top |
|
| |
schorsch Newbie

Joined: 29 September 2008
Online Status: Offline Posts: 4
|
| Posted: 29 September 2008 at 11:30am | IP Logged
|
|
|
Thanks a lot!
Unfortunately I fount out, that the ISAPI Version is: 2.9.0.65 How does it need to be written in this version?
Thanks!
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 4837
|
| Posted: 30 September 2008 at 4:45am | IP Logged
|
|
|
Here are the rules for v2:
RewriteRule (?!admin|dirs|to|exclude).* /papiermuseum/de/index.php [I,L]
__________________ Regards,
Anton
|
| Back to Top |
|
| |
schorsch Newbie

Joined: 29 September 2008
Online Status: Offline Posts: 4
|
| Posted: 30 September 2008 at 5:45am | IP Logged
|
|
|
Wow, thank you!
It works, but I am in trouble again. Right now the ISAPI redirect every page call. I need to say: "only if the file is not existing"
So that I can show pictures for example: ../image/mypic.jpg
Thanks!
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 7598
|
| Posted: 06 October 2008 at 12:17pm | IP Logged
|
|
|
Quote:
| I need to say: "only if the file is not existing" |
|
|
That is not possible with v2. But you could exclude picture files by extension pattern:
RewriteRule (?!/(?:admin|dirs|to|exclude)/|[^?]+\.(?:jpg|gif|png)).* /papiermuseum/de/index.php [I,L]
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You can vote in polls in this forum
|