large .htaccess conversion
RedAMP
admin at redamp.net
Wed Jun 22 17:51:24 MSD 2011
On 06/21/2011 06:40 PM, RedAMP wrote:
> 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]
>
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
okay, so nobody wants to take this task on. lol well, i'm still trying
to get it but i'm struggling with the options variable. can someone at
least explain to me how you would set the options variable (SEFTAG) as
seen in the line below?
# Rewrite Pattern Redirect URL Options -
SEFTAG required!
RewriteRule ^pages/([^/]+) index.php?t=$1
[E=SEFTAG:pages,L]
More information about the nginx
mailing list