Is there a way to do some sort of regex loop in .htaccess

Blisstick

New Member
hi at the minute I have a list of rules in my .htaccess file but if I need to add a new page i then need to edit this file again and add yet another rulles. HEre is a few\[code\]RewriteRule ^admin/(.*).html$ index.php?x=admin&y=$1RewriteRule ^admin/project/(.*).html$ index.php?x=work&p=project&$1RewriteRule ^work/(.*).html$ index.php?x=work&p=$1\[/code\]Is there some way that I can have 1 rule that will work for all. Is ther ways to do loops so that for each additional /something/extra in the url it will add it in the redirect??Thanks.
 
Back
Top