Gibbons
Jan 31 2008, 09:05 PM
I want to achieve the following:
http://www.domain.com/about.phpto become
http://www.domain.com/aboutCould someone please provide me with the necessary coding.
Thanks very much.
Jack
Jan 31 2008, 09:15 PM
You need to use htaccess and modrewrite properties, perhaps this will help:
http://corz.org/serv/tricks/htaccess2.php
Gibbons
Feb 1 2008, 12:16 PM
Thanks for the help Jack. For those who wish to know how i managed to do this, i put the following code into my .htaccess file:
Options +MultiViews -Indexes
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(([^./]+)+)/?$ $1.php [L]
dtechlord
Feb 1 2008, 06:20 PM
how do you create a .htaccess file???
i would like to do that to my site.
Banjo
Feb 1 2008, 07:39 PM
Just write your code in a notepad file. Then save as (filenamehere).htaccess
Eg
hello.htaccess
you may need to click all files instead of .txt in the save bit.