Hat-rack Reply #1, 1 year, 2 months ago
I'm trying to redirect a URL:
to
My rewriteCond looks like this (I'm using MODx as a CMS)
Does anyone have any idea how specify a rewrite rule for a url with so many question marks, ampersands and parameters in it? I probably need to do rewrite rules for everything, not just simple redirects?
www.example.com/content.aspx?ID=2&ParentID=60&MicrositeID=0&Page=1
to
www.example.com/products
My rewriteCond looks like this (I'm using MODx as a CMS)
# For Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Redirect 301 /content.aspx?ID=60&ParentID=0&MicrositeID=0&Page=1 http://www.example.co.uk/products
Does anyone have any idea how specify a rewrite rule for a url with so many question marks, ampersands and parameters in it? I probably need to do rewrite rules for everything, not just simple redirects?