0

I'd like to rewrite:

http://www.example.com/item.html/category/something/something2 

To :

http://www.example.com/item/something/something2 

Thus getting rid of "category" and ".html"

I have tried:

#rewrite to remove "category" and ".html" RewriteEngine On RewriteCond %{REQUEST_URI} !^item.html/category/ RewriteRule ^item/(.*)$ /item/category/$1 [QSA,L] 
1
  • I'm using Magento. I do have other rules in place. I've added what I've tried so far above.-thx Commented Jul 16, 2014 at 21:36

1 Answer 1

1

Do you need the RewriteCond, just do the rewrite like so:

RewriteEngine On RewriteRule ^item.html/category/(.*)$ /item/$1 [QSA,L] 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.