Using $ GET after a rewrite.?
Posted: Wed Jul 18, 2007 6:55 am
Hi,
I am using RewriteRule to sort out my urls in htaccess. The problem is that now I need to record a $_GET that is on the end of the url when it comes from a google ad.
example:
/product-1-widget.html (is my normal url which works fine)
/product-1-widget.html?ad=google (is the new url that I want to get $_GET['ad'] from but because I am already rewriting it doesnt work)
I currently use this RewriteRule line:
RewriteRule product-(.*)\.html$ /product.php?id=$1 [L]
Thanks
Dave
I am using RewriteRule to sort out my urls in htaccess. The problem is that now I need to record a $_GET that is on the end of the url when it comes from a google ad.
example:
/product-1-widget.html (is my normal url which works fine)
/product-1-widget.html?ad=google (is the new url that I want to get $_GET['ad'] from but because I am already rewriting it doesnt work)
I currently use this RewriteRule line:
RewriteRule product-(.*)\.html$ /product.php?id=$1 [L]
Thanks
Dave