|
Posted by Bill Karwin on 11/12/05 05:05
go@thescriptsmailer.com wrote:
> Can someone please tell me what URL rewriting is? I don't understand . . . a client is asking me to rewrite his URLs.
Basically, it's when you send a request URL to a web server, and the
server maps the URL to some other request, to give you a page (or other
type of resource) that is at a different location.
This is useful, for example, when a page changes location, but you want
people to be able to find it at the old location, in case they have
bookmarks, or access it from a link on another site or search engine.
Also, you might want to allow people to use a simple URL, even if your
PHP application requires a number of complex and ugly-looking parameters.
One might also use this method to redirect web surfers to mirrored
copies of files on other servers.
The means to implement URL rewriting are various. It seems like most
often people use Apache's mod_redirect or mod_rewrite modules to do it.
There are numerous tutorials on these modules available, even from the
Apache.org site.
But other people say that using mod_rewrite for any significant number
of pages gets very complex and laborious to maintain. I searched google
for a couple of minutes but I didn't see a concise alternative proposed
for PHP applications to do this in script code.
Regards,
Bill K.
Navigation:
[Reply to this message]
|