0

How can i redirect from www.example.com/dietitian/reema.verma.3 to www.example.com/dietitian/#/3 ? Please help.

Options +FollowSymLinks
RewriteEngine On
Redirect www.example.com/dietitian/reema.verma.3 www.example.com/dietitian/#/3
2
  • Did you try anything yourself? Commented Apr 17, 2017 at 10:22
  • yes. see I just edit my question. But it is not working. I put the above code in .htaccess file. And place the .htaccess file at the root folder. Commented Apr 17, 2017 at 10:39

1 Answer 1

1

You can only match REQUEST_URI using RewriteRule or Redirect.

Use this rule:

Options +FollowSymLinks
RewriteEngine On

RewriteRule ^/?(dietitian)/.+\.(\d+)/?$ /project/$1/#/$2 [L,NC,NE,R=301]
Sign up to request clarification or add additional context in comments.

9 Comments

please suggest what to do
Yes. Great. Thanks Anubhava. :)
Hi anubhava, Please help there is some change in requirement now I want www.example.com/healthcare/practitioner/nikky.23 to www.example.com/healthcare/practitioner/#/nikky.23
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.