PDA

View Full Version : how to remove extensions in url


raptori
11-26-2002, 04:28 AM
how do i make an end of the url that looks this way:somedomain.com/dir/?variable=value
instead of:
somedomain.com/dir/page.php?variable=value

does this have to do anything with index.php ??

thanks

Dylan Leblanc
11-26-2002, 07:09 AM
Yes. There are no webpages on my site where the "~.php" is visable in the URL. As long as your server is configured to load the "index.php" file when no file is specified in the URL this should work.

Ankun
11-26-2002, 06:27 PM
Originally posted by Dylan Leblanc
Yes. There are no webpages on my site where the "~.php" is visable in the URL. As long as your server is configured to load the "index.php" file when no file is specified in the URL this should work.

yes but you cant have any other index files that comes before it in loading for the default file (ie. index.htm..index.html..etc etc) so u'd have to ask your host if its possible to set index.php as the default file on your server.

raptori
11-26-2002, 08:59 PM
i can set it myself...what do i have to do? edit something in apache config file?

Dylan Leblanc
11-26-2002, 11:34 PM
Yes, edit some Apache config file, or it can even be done with .htaccess files. So a few searches on Google.

duniyadnd
11-27-2002, 10:50 AM
http://www.javascriptkit.com/howto/htaccess6.shtml

That should explain it.
Duniyadnd