Hi all
I have a site running mod-rewrites and I map a URL to a page which is accessed via the following URL on my site:
http://www.my-domain.com/stockists/worldwide
Now, on this page, I display links which when clicked call the following URL:
http://www.my-domain.com/stockists/worldwide?country=12
The number on the end can be any number. Now the problem I have is that the mod-rewrite is sending this request to the same script that called it, but I need it to redirect to another script.
I tried this but it doesn't work:
if (preg_match('/^\/worldwide?country/',$_SERVER['REQUEST_URI'],$matches)) {
include($_SERVER['DOCUMENT_ROOT'] . '/new-script.php');
exit();
}
Cxan anyone help with this?
Many Thanks