PDA

View Full Version : rewrite syntax help please



tcshadow
08-11-2011, 04:40 PM
I need a rewrite rule for the following function

index.php?cPath=3_72_106_108

only if cPath starts with 3_ URL should display /text-string-category 108 name.html

Can anyone in the know give me the correct .htaccess syntax?

michael_s
08-12-2011, 09:03 AM
I recommend this tutorial on regular expressions. It is one of the best and easiest to understand:
Definitive guide to Apache mod_rewrite regular expressions (http://forums.digitalpoint.com/showthread.php?t=504361)