I can't figure out a way to stop this htaccess redirect from looping.
Options +FollowSymLinks
Options -Multiviews
RewriteOptions MaxRedirects=1
RewriteEngine On
RewriteRule ^pages/?$ page.php?p=g&id=1$1 [L,QSA]
RewriteCond %{QUERY_STRING} ^p=g&id=1$ [NC]
RewriteRule ^page\.php$ /pages/? [r=301,nc]
Now it just loops until the browser says "This webpage has a redirect loop". The address bar on the browser shows the correct address at least..
Is it possible to stop it from looping?
I have tried: RewriteOptions MaxRedirects=1
with no success.
I would like to have it so any links to /page.php?p=g&id=1 redirect to /pages/
Thanks.