I want the mod_rewrite in the .htaccess file to reference the mysql database to provide me with mapping information.
In particular, I use one code base to host several sites, so ... if the user requests an image, for example:
http://www.example.com/images/car.jpg
this will hit my server and many other sites will also fall into the / images folder, so I need Apache to reply: / home / example / pubic _html / images / 7383 / car.jpg
Pay attention to the injection "7383", which is a sample site identifier for this user.
Basically, I want to map example.com and 7383 using the mysql database, and then get the correct file for the user.
Any ideas?
Simon source
share