URL Re-write???
Gerald Combs
gerald at ethereal.com
Thu May 15 21:56:22 CDT 2003
On Wed, 14 May 2003, Bradley Miller wrote:
> Could anyone point me to the spot to find out how to do this?
>
> Instead of:
> http://www.mydomain.com/index.php?itemid=520
>
> Make it something like this:
> http://www.mydomain.com/itemid/520
>
> I know there is something . . . just need solution very quickly.
Check out the Apache URL Rewriting Guide:
http://httpd.apache.org/docs/misc/rewriteguide.html
as well as the RewriteRule configuration directive:
http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteRule
Your config would probably look something like
RewriteEngine on
RewriteRule ^itemid/(.*) index.php?itemid=$1 [L]
although you can get much fancier.
More information about the Kclug
mailing list