Re: URL modification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



/rental/property/23425
to: /index.php?mod=property&section=rentals&propertyid=23425

Thinking about this a little, you still don't need mod_rewrite.

"rental" could be a PHP script, forced through PHP with:

<Files rental>
    ForceType application/x-httpd-php
</Files>

In either a .htaccess file or, if performance is an absolute necessity, your httpd.conf file (ie .htaccess files are turned off). In your rental PHP script you simply look at the REQUEST_URI $_SERVER variable to determine the correct data to show.

You could also forego the <Files> bit if you're willing to accept URLs like this:

/rental.php/property/23425

--
Richard Heyes
http://www.phpguru.org
Free PHP and Javascript code

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux