0

My website URL is currently like this:

  • http://​ori123.com/product/category/9/0/case-apple

I want to change it into this:

  • http://​ori123.com/case-apple

I tried the following code in my .htaccess file but it is not working.

Options +FollowSymLinks
RewriteEngine on
RewriteRule http://ori123.com/rock-rotary-smart-case-series-for-ipad-air/(.*)/$ /product/detail/128/rock-rotary-smart-case-series-for-ipad-air?$1=

Can somebody tell me how can I do this using .htaccess?

1 Answer 1

1

You only match REQUEST_URI in RewriteRule without protocol and domain name. Use this rule:

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^rock-rotary-smart-case-series-for-ipad-air/(.*?)/?$ /product/detail/128/rock-rotary-smart-case-series-for-ipad-air?$1 [L]
Sign up to request clarification or add additional context in comments.

Comments

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.