in reply to How do I create friendlier URLS?

On an Apache Server you can use REWRITE in an .htaccess file located in your www root directory.
file: .htaccess
#start the engine RewriteEngine on #this needs to be set to allow the URL manipulation Options +FollowSymlinks #the directory the manipulations will take place on RewriteBase / # mod_rewrite allows you to use Regular Expressions # to define the manipulations RewriteRule ^(.*\.html)$ cgi-bin/foo.cgi?call=$1
So http://www.mydomain.com/bar ends up as
http://www.mydomain.com/cgi-bin/foo.cgi?call=bar.html

see: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Replies are listed 'Best First'.
Re^2: How do I create friendlier URLS?
by blogical (Pilgrim) on Feb 23, 2007 at 02:52 UTC
    I know you can use mod_rewrite for this but I don't have access to it