skip to Main Content

apache .htaccess redirect regex

I need this redirect 301 rule in apache .htaccess: /catalog/{category_slug}/{product_slug} to /product/{product_slug} example: /catalog/cat1/prod1 to /product/prod1 /catalog/cat1/prod2 to /product/prod2 /catalog/cat2/prod3 to /product/prod3 and also: /en/catalog/abc/xyz to /en/product/xyz /es/catalog/abc/xyz to /es/product/xyz ... ... Could you please help me? tks Simone

VIEW QUESTION

How do I redirect multiple urls to same url – Apache

how do I redirect multiple url to another one url I have tried but its not working RewriteCond %{HTTP_HOST} ^sub.domain.to/q1$ [NC,OR] RewriteCond %{HTTP_HOST} ^sub.domain.to/q2$ [NC,OR] RewriteCond %{HTTP_HOST} ^sub.domain.to/q3$ [NC,OR] RewriteCond %{HTTP_HOST} ^sub.domain.to/q4$ [NC,OR] RewriteCond %{HTTP_HOST} ^sub.domain.to/q5$ [NC] RewriteRule ^(.*)$ https://sub.domain.to/full-q…

VIEW QUESTION
Back To Top
Search