hide script in url, how?

This is a discussion on hide script in url, how? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, is it possible to hide a script in an url that the user think that this is a normal ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-25-2005
GErhard Haslberger
 
Posts: n/a
Default hide script in url, how?

Hi,

is it possible to hide a script in an url that the user think that this
is a normal subdirectory like

http://www.server.com/exec/username
instead of
http://www.server.com/script.pl?username

ive tried an ALIAS but then the apache looks for script.pl/username

Ideas?

Thankx
  #2 (permalink)  
Old 01-25-2005
Martin Kissner
 
Posts: n/a
Default Re: hide script in url, how?

GErhard Haslberger wrote :
> Hi,
>
> is it possible to hide a script in an url that the user think that this
> is a normal subdirectory like
>
> http://www.server.com/exec/username
> instead of
> http://www.server.com/script.pl?username
>
> ive tried an ALIAS but then the apache looks for script.pl/username


SSI

--
Epur Si Muove (Gallileo Gallilei)
  #3 (permalink)  
Old 01-25-2005
Adomas
 
Posts: n/a
Default Re: hide script in url, how?

Neigh, rewrite with mod_rewrite:
RewriteEngine On
RewriteRule ^/?exec/(.*)$ /script.pl?$1

  #4 (permalink)  
Old 02-02-2005
iMedia
 
Posts: n/a
Default Re: hide script in url, how?

mod_rewrite is the most powerful tool for this:
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html

  #5 (permalink)  
Old 02-02-2005
HansH
 
Posts: n/a
Default Re: hide script in url, how?

"iMedia" <google@myimedia.com> schreef in bericht
news:1107352514.515215.153430@o13g2000cwo.googlegr oups.com...
> mod_rewrite is the most powerful tool for this:
> http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html


On the other hand, defining an action-name for your script, setting this
action as a handler to a directory and have the script use the remaining
path for parameters, should do the job [faster] too...

http://httpd.apache.org/docs-2.0/mod...ns.html#action
http://httpd.apache.org/docs-2.0/mod...tml#sethandler
http://httpd.apache.org/docs-2.0/mod...acceptpathinfo

HansH


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0