I would like to rewrite one URL to appear as a directory, i've trawled the various websites but can't see how this could be done.
Basically I want http://www.domain.com/index.php?m=3&i=9 to appear as http://www.domain.com/sports
Thanks
| SitePoint Sponsor |
I would like to rewrite one URL to appear as a directory, i've trawled the various websites but can't see how this could be done.
Basically I want http://www.domain.com/index.php?m=3&i=9 to appear as http://www.domain.com/sports
Thanks

SS,
What you're trying to do (from your example) will require a RewriteMap which requires access to the httpd.conf file (in order to run an application file to access the database to "connect" sports to m=3&i=9.
I've discussed this in my signature's tutorial article.
Regards,
DK
David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
Client and (unpaid) WHB Ambassador
Updated mod_rewrite Tutorial Article (setup, config, test & write
mod_rewrite regex w/sample code) and Code Generator
Bookmarks