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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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) |
|
|||
|
mod_rewrite is the most powerful tool for this:
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html |
|
|||
|
"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 |