I have ALMOST got my short links setup and my old links 301d to the new short link BUT.... Im stuck... again.
Trying to get this
ht tp://mywebsite.com/mm5/merchant.mvc?Screen=PROD&Store_Code=HTE&Product_Co de=sample&Category_Code=SampleCat
to look like this
ht tp://mywebsite.com/PROD/sample.htm
instead I get this
ht tp://mywebsite.com/PROD/sample&Category_Code=SampleCat.htm
I'm using this
RewriteCond %{QUERY_STRING} ^Screen=PROD&Product_Code=(.*)$
RewriteRule ^(.*)$ http://mywebsite.com/PROD/%1.htm? [R=301,L]
RewriteCond %{QUERY_STRING} ^Screen=PROD&Store_Code=HTE&Product_Code=(.*)$
RewriteRule ^(.*)$ http://mywebsite.com/PROD/%1.htm? [R=301,L]
What do I need to strip that category off the end?
Thank you so much in advance!
Trying to get this
ht tp://mywebsite.com/mm5/merchant.mvc?Screen=PROD&Store_Code=HTE&Product_Co de=sample&Category_Code=SampleCat
to look like this
ht tp://mywebsite.com/PROD/sample.htm
instead I get this
ht tp://mywebsite.com/PROD/sample&Category_Code=SampleCat.htm
I'm using this
RewriteCond %{QUERY_STRING} ^Screen=PROD&Product_Code=(.*)$
RewriteRule ^(.*)$ http://mywebsite.com/PROD/%1.htm? [R=301,L]
RewriteCond %{QUERY_STRING} ^Screen=PROD&Store_Code=HTE&Product_Code=(.*)$
RewriteRule ^(.*)$ http://mywebsite.com/PROD/%1.htm? [R=301,L]
What do I need to strip that category off the end?
Thank you so much in advance!
Comment