Re: URLs
| From: | Daniel Brown | Date: | Thu, 12 Jul 2007 14:21:57 +0000 |
| Subject: | Re: URLs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258699@lists.php.net to get a copy of this message | ||
On 7/12/07, Philip Thompson <prthomp@uark.edu> wrote:
Hi. This may or may not be a PHP question - I'll let the group decide. Note this URL: http://www.someplace.com/SomeDirectory/SomeFile compared to this URL: http://www.someplace.com/SomeDirectory/SomeFile.php Okay. How does one create the URL with no file extension? Is this done through PHP or is this a server setting? Thanks in advance! ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpThat would be done via either a server setting (such as Apache's mod_rewrite) or having multiple directories to act as a file, with an index.php or other default file in there. So that if you called:
http://www.somplace.com/somePath/
- OR -
http://www.somplace.com/somePath/hawaii.php
(with an .htaccess file holding:
DirectoryIndex hawaii.php} -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107