All pastes #490339 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-15 23:29 UTC
rendered paste body
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