0

I need help in redirecting a url with adding some text with a hyphen.

Following is what I want to achieve:

I want to redirect https://somesite.com/girl-dresses/singapore to https://somesite.com/female-dresses/singapore-city

I tried:

RewriteEngine On

Redirect 301 /girl-dresses/singapore https://somesite.com/female-dresses/singapore-city

But this doesn't work unfortunately.

Community
  • 1
  • 1
tehrijack
  • 21
  • 4
  • Possible duplicate of [.htaccess 301 redirect of single page](https://stackoverflow.com/questions/1421068/htaccess-301-redirect-of-single-page) – Martin Apr 27 '19 at 09:01

1 Answers1

0

Try add in .htaccess (high is possible) this rewrite:

RewriteEngine On
RewriteRule ^girl-dresses\/singapore$ /female-dresses/singapore-city [R=301,L]
JarekBaran
  • 1,311
  • 2
  • 7
  • 12
  • Thanks for your help but unfortunately it didn't work, url comes out to be https://somesite.com/female-dresses/singapore, city isn't added to it. – tehrijack Apr 29 '19 at 12:26