This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Redirect on missing on exe request
Author
Message |
Rudolph
Newbie


Joined: 02 August 2010
Posts: 5
Posted: 02 August 2010 at 4:43am

Hi

We are trying to find all missing exe download requests and then redirect them a an exe link that always exists. I've found the code below, but it does not seem to work.

#Check if file exists
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# would be nice to check for exe requests only
RewriteRule /Downloads/test_Downloader.exe [NC,L]

Your help would be appreciated.

Thanks
Rudolph
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 02 August 2010 at 5:19am

Please specify what version of ISAPI_Rewrite you are using - 2 or 3.
The syntax will be completely different.

__________________
Regards,
Anton
Back to Top
 
Rudolph
Newbie


Joined: 02 August 2010
Posts: 5
Posted: 02 August 2010 at 5:21am

Hi

Using ISAPI_Rewrite 2
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 02 August 2010 at 7:38am

Unfortunately, such check is not possible in v2, but if you could migrate to v3, the syntax would be:

#Check if file exists
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# would be nice to check for exe requests only
RewriteRule \.exe$ /Downloads/test_Downloader.exe [NC,L]

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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 cannot vote in polls in this forum