We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

.htaccess redirect not working

How Do I?

rsantos's avatar
rsantos
5 posts
9 years ago
rsantos's avatar rsantos

Hi All

We are changing the URL structure of our site from:

http://www.example.com/products_new/%product-name%

to

http://www.example.com/products/%product-name%

I have put the following mod rewrite rule in the .htaccess file

RewriteEngine On
RewriteBase /
RewriteRule  ^products_new/(.*)$ /products/$1 [R=301,NC,L]

It seems it is not taking the redirect :(

Any help is appreciated.

       
rsantos's avatar
rsantos
5 posts
9 years ago
rsantos's avatar rsantos

Ok got it.

It seems i did not need the “RewriteBase /”

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.