RewriteEngine on # Redirect old pages to new pages # I get 301 looping when these two lines are added RewriteCond %{query_string} t=([a-z]+) RewriteRule ^index.php$ /page/%1/? [r=301,nc,l] # Pretty URL's for standard pages (with trailing slashes) # This works fine if I comment out the lines above this RewriteRule ^page/([^/]+)$ /page/$1/ [r=301,nc] RewriteRule ^page/([^/]+)/$ /index.php?t=$1