Jump to content

Remove Category from url


CMoore

Recommended Posts

Am trying to remove category from showing in URL.

For example I have:

 

mysite.com/category-one/my-item

 

but would like:

 

mysite.com/my-item

 

I have tried a rewrite rule in htaccess but it is not working, even with  URL rewriting enabled in site configs.

If anyone has figured this one out (or sees issue in my rule) I would love a tip.

this is rewrite:

 

RewriteRule ^/category-one/(.*)$ $1 [R]

Link to comment
×
×
  • Create New...