large .htaccess conversion
RedAMP
admin at redamp.net
Wed Jun 22 03:40:16 MSD 2011
well, if anyone feels like taking a crack at it... check below
# Rewrite Pattern Redirect URL Options -
SEFTAG required!
RewriteRule ^pages/([^/]+) index.php?t=$1
[E=SEFTAG:pages,L]
RewriteRule ^charts/([^/]+) index.php?t=$1
[E=SEFTAG:charts,L]
RewriteRule ^lists/([^/]+) index.php?t=$1
[E=SEFTAG:lists,L]
RewriteRule ^articles/([^/]+) index.php?c=$1
[E=SEFTAG:articles,L]
RewriteRule ^signup/([^/]+) signup.php
[E=SEFTAG:signup,L]
RewriteRule ^content/(.+) index.php?c=$1
[E=SEFTAG:content,L]
RewriteRule ^forum(/)+(.*)$ forum.php?band_id=0
[E=SEFTAG:forum,QSA,L]
RewriteRule ^comments(/)+(.*)$ comment.php
[E=SEFTAG:comments,QSA,L]
RewriteRule ^community(/)+$ index.php?t=community
[E=SEFTAG:community,QSA,L]
RewriteRule ^search(/)+$ index.php?t=search
[E=SEFTAG:search,QSA,L]
# Link Masker
RewriteRule ^chart=([^/]+)$ sefjam.php?uf_str=$1 [L]
RewriteRule ^list=([^/]+)$ sefjam.php?uf_str=$1 [L]
RewriteRule ^page=([^/]+)$ sefjam.php?uf_str=$1 [L]
# specific pages
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{SCRIPT_FILENAME} !(([^/]+)\.css)
RewriteCond %{SCRIPT_FILENAME} !(([^/]+)\.xml)
RewriteCond %{REQUEST_URI} !^(.*epk.*)$
RewriteCond %{REQUEST_URI} !^(.*song_player.*)$
RewriteRule ^members/([0-9]+)(/.*)?$ sefjam.php?band_id=$1 [QSA,L]
RewriteRule ^([A-Za-z0-9_.-]+)/guestbook(/)?$
guestbook.php?mode=view_guestbook&template=script_guestbook.tpl&profile=$1
[QSA,L]
RewriteRule ^([A-Za-z0-9_.-]+)/epk(/)?$ epk.php?profile=$1 [QSA,L]
RewriteRule ^([A-Za-z0-9_.-]+)/contact(/)?$
contact.php?template=script_contact.tpl&profile=$1 [QSA,L]
RewriteRule ^([A-Za-z0-9_.-]+)/comments(/)?$
comment.php?mode=view_comments&type=band&template=script_comment.tpl&profile=$1
[QSA,L]
RewriteRule ^([A-Za-z0-9_.-]+)/share(/)?$
share.php?mode=form&template=script_share.tpl&profile=$1 [QSA,L]
RewriteRule ^([A-Za-z0-9_.-]+)/info(/)?$ $1/info.php [QSA,L]
RewriteRule ^([A-Za-z0-9_.-]+)/forum(/.*)?$ forum.php?profile=$1 [QSA,L]
# Profiles - entry
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/]+)((/.+\.php)?/?)$ sefjam.php?uf_name=$1&uf_path=$2
[QSA,L]
More information about the nginx
mailing list