Forum Moderators: phranque
Rewrite rule is this:
RewriteRule product.([A-Za-z0-9\-]+),([.0-9A-Za-z\-]+),([A-Za-z\-]+) product.php?color=$1&type=$2&cat=$3 [NC]
I need to append an email address onto the end of the url like this:
www.mysite.com/product.color,type,cat?email=mike@aol.com
When I try to do so, the get variable 'email' doesn't have any data in it EG: $_GET['email'].
The email address may or may not be appended to the url. Is there any easy way to solve this using mod_rewrite?
Thanks!
In your patterns, change [A-Za-z] to just [A-Z] because the [NC] flag says to use any case.
Ahead of the rewrite, make sure you have a site-wide non-www to www redirect in place to stop Duplicate Content issues.