Post by Ctsimpos » Mon Sep 19, 2016 10:28 pm

dear all

would anyone know whether a wildcard can be used in error redirects page and what the syntax should look like?

for example i want to redirect all URLs that contain the string "product1.html" to my www.mywebsite.com

these could include
www.mywebsite.com/product1.html or
www.mywebsite.com/category/product1.html

I know i can individually create link in error page manager but could i create a redirect using a wildcard ???

many thanks

New member

Posts

Joined
Fri Aug 12, 2016 6:00 pm


Post by Avvici » Tue Sep 20, 2016 1:18 am

First logical solution: get an extension like this: http://www.opencart.com/index.php?route ... 20redirect

Second solution. Edit your .htaccess

Code: Select all

RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com$ [NC]
RewriteRule ^.+?-c2x http://newdomain.com%{REQUEST_URI} [L,NC,R=301,NE]

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by Ctsimpos » Tue Sep 20, 2016 2:11 pm

thanks

New member

Posts

Joined
Fri Aug 12, 2016 6:00 pm

Who is online

Users browsing this forum: No registered users and 46 guests