Mod Rewrite assistance

UltraFlux
UltraFlux used Ask the Experts™
on
Hello,

I require assistance from a mod rewrite pro.

I have the url
http://domain.com/category/sink-faucet-sets/

I want to setup a mod_rewrite for this category to display only
http://domain.com/sink-faucet-sets/

Is this possible and how can I accomplish this?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

modRewrite will effectively redirect you to the subsequent page..
what you could do is create the path /sink-faucet-sets/ containing either a .htaccess or a index.php with header redirection to /category/sink-faucet-sets/

otherwise is the url selected by the webuser is /category/sink-faucet-sets/ you can redirect them to /sink-faucet-sets/ by:

RewriteRule ^category/sink-faucet-sets/(.*) /sink-faucet-sets/$1 [PT]

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial