[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Apache & mod_rewrite

Hi everyone,

Anyone got any experience with mod_rewrite under Apache.

I am trying to create a dynamic directory using the following syntax which I figured out from looking at tutorials etc but it refuses to work.

This is what I have so far :-

RewriteEngine on
RewriteBase /
RewriteRule ^/(.*)$ /index.php?cat=$1

To use as :-

http://www.xyz.com/products => http://www.xyz.com/index.php?cat=products

Any help or guidance will be greatly appreciated.


Reply to: