Re: search safe URLs

From: Date: Tue, 27 Mar 2001 16:56:14 +0000
Subject: Re: search safe URLs
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45740@lists.php.net to get a copy of this message
In article <5.0.2.1.0.20010327080129.00a62220@mail.wizaerd.com>, wizaerd@wizaerd.com (Joe Sheble aka Wizaerd) wrote: > In order to use URLs without ? and &, there has to be some re-configuration > in Apache, correct? So somebody who didn't have access to httpd.conf > couldn't use this methodology? Or if this is completely incorrect, where > can I find more info on implementing it strictly in PHP? Apache allows use of urls without "?" and "&" right out of the box. That's just a URI without an optional query string: <http://www.php.net>, for example. I'm guessing you want to use URLs that *do have a query string and transform them into ones that don't: <http://www.php.net/find_stuff.php?query=foo&method=bar> becoming <http://www.php.net/find_stuff/foo/bar/>, right? You can use an .htaccess file to direct Apache to rewrite URLs as long as mod_rewrite is installed. See <http://httpd.apache.org/docs/misc/rewriteguide.html> for a detailed tutorial. For a how-to on implementing this in PHP, check out some of the tutorial sites like phpbuilder.com,weberdev.com, webmonkey.com, etc. -- CC

« previous php.general (#45740) next »