Hi guys...I need your help on mod_rewrite issue. Namely I want to rewrite certian dynamic urls to classic static ones.
The dynamic one looks like:
and this code actually redirects surfer to certian site that is under specified id (543, for example). The ids and info about those sites are stored in mySql database. Is it somehow possible to rewrite the url above to the site name, that we would've got from the database?
So if this script is stored in dir: script/cx.php and calling it would cause this action(for each site that is in db is different id): www.domain.com/script/cx.php?id=324&s=70&t=1 and I'd like to see all that rewritten with the actual site url, but however it should pass through the script (because of tracking stuff).
Msg#: 3026052 posted 12:25 am on Jul 29, 2006 (gmt 0)
You can use the "External Rewriting Program" map-type variation of the RewriteMap [httpd.apache.org] directive, if you have access to the httpd.conf configuration file. Use RewriteMap to call a script which translates the URLs as needed, based on the database.