mod_rewrite multiple ASPX urls

ertobliozm

New Member
Moved a E-commerce store from a windows aspx server to a new cms on linux. In order to maintain previous sitemap I need to redirect multiple aspx urls to a new aspx url. An example. \[code\]mysite.com/brand-material-style-large-blue.aspx mysite.com/brand-material-style-large-red.aspx mysite.com/brand-material-style-med-blue.aspx \[/code\]all need to be redirected to mysite.com/brand-material-style.aspx I've tried and tried, but cannot get the rewrite to work. Here's what I have now:\[code\]RewriteEngine OnRewriteCond %{REQUEST_URI} brand-material-style(.+)\.aspx [NC]RewriteRule ^brand-material-style(.+)$ http://www.mysite.com/brand-material-style.aspx [R=301,L]\[/code\]
 
Back
Top