I have a php script on a webserver. Currently, the script is being accessed as http://www.mydomain.com/scriptname.php .
Is there a way i can create a user friendly url for accessing this script, something like http://www.mydomain.com/appname, so when this url is called it invokes the php script ?
Please help.
Thank You
You want mod_rewrite if you’re using Apache HTTPD: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
If you’re using a different web server, it may have something similar (lighttpd has a similar functionality builtin).
Once it’s enabled, you can use something like this in your .htaccess file to rewrite appname to scriptname.php