Forum Moderators: phranque
rewriterule ^directory/(.*)-widget.htm$ /cms/page.php?GROUP_ID=directory&PID1=$1
This basiclly rewrites /directory/placename-widget.htm to /cms/page.php?GROUP_ID=directory&PID1=placename
This works fine however I have some static pages in the directory in the following format which I don't want rewriiten.
/directory/placename_a-widget.htm
/directory/placename_b-widget.htm
I have tried the following but it gives an Internal Server Error as I think it just keeps looping.
rewriterule ^directory/placename_(.*)-widget.htm$ /directory/placename_$1-widget.htm
rewriterule ^directory/(.*)-widget.htm$ /cms/page.php?GROUP_ID=directory&PID1=$1
Is there a way of rewrting certain urls while ignoring others?
Thanks in adavance.