Remove ".exe" in url

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
mdoigny
-


Joined: 24 May 2008
Posts: 16
Location: Oostende, Belgium

PostPosted: Mon Jul 07, 2008 7:40 pm    Post subject: Remove ".exe" in url Reply with quote

Is it possible to remove the ".exe" in calls to executables?

For instance the executable is /cgi/test.exe and it should be called with
http://xxx.yyy/cgi/test or http://xxx.yyy/cgi/test.htm

All executables (classic CGI) reside in the /cgi directory.
_________________
Home server
Back to top View user's profile Send private message Visit poster's website
badai
-


Joined: 24 Apr 2003
Posts: 82

PostPosted: Fri Jul 11, 2008 4:40 pm    Post subject: Reply with quote

without extension, how your server going to handle MIME Type?

or maybe you can do a little trick like changing it to other extension and set it in your server to handle that extension accordingly.
Back to top View user's profile Send private message
mdoigny
-


Joined: 24 May 2008
Posts: 16
Location: Oostende, Belgium

PostPosted: Fri Jul 11, 2008 4:57 pm    Post subject: Reply with quote

badai wrote:
without extension, how your server going to handle MIME Type?

Code:

HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: ...


I use NPH (non parsed headers) as response.
But some user agents insist on saving the file instead of displaying it, based on the extension. With Xitami (another web server) you could simply code
http://xxx.yyy/cgi-bin/test
and the server would look for anything executable in the cgi-bin directory (Xitami uses a "dir test.*" to determine the presence of files)
_________________
Home server
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group