Forum Moderators: phranque
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^products/([\-_a-z0-9]+)\.php$ template-products.php?content=$1 [L]
RewriteRule ^information/([\-_a-z0-9]+)\.php$ template-information.php?content=$1 [L]
RewriteRule ^([\-_a-z0-9]+)\.php$ template.php?content=$1 [L]
ErrorDocument 404 /template.php?content=$1
The problem I have is the third rewrite rule captures all urls and therefore redirects all pages to template.php, ignoring the previous 2 rules and not using those templates.
How can I prevent the third rule from overwriting the previous 2?
Regards