how to change apache rewriteRule to nginx rewrite
Sun Tsh
lists at ruby-forum.com
Sun Jun 15 14:44:39 MSD 2008
RewriteRule ^video/([0-9]+)/(.*)/([a-z]+)/(.*)
view_video.php?vid=$1&action=$2&%{QUERY_STRING} [L]
RewriteRule ^video/([a-z][a-z])/([0-9]+)/(.*)
view_video.php?vid=$2&category=$1%{QUERY_STRING} [L]
RewriteRule ^video/([a-z][a-z])/([0-9]+)/([0-9]+)/(.*)
view_video.php?vid=$3&category=$1&page=$2%{QUERY_STRING} [L]
RewriteRule ^video/basic/([a-z][a-z])/([0-9]+)/([0-9]+)
view_video.php?vid=$3&category=$1&page=$2&viewtype=basic%{QUERY_STRING}
[L]
RewriteRule ^video/basic/([a-z][a-z])/([0-9]+)/([0-9]+)/(.*)
view_video.php?vid=$3&category=$1&page=$2&viewtype=basic%{QUERY_STRING}
[L]
RewriteRule ^video/detailed/([a-z][a-z])/([0-9]+)/([0-9]+)
view_video.php?vid=$3&category=$1&page=$2&viewtype=detailed%{QUERY_STRING}
[L]
RewriteRule ^video/detailed/([a-z][a-z])/([0-9]+)/([0-9]+)/(.*)
view_video.php?vid=$3&category=$1&page=$2&viewtype=detailed%{QUERY_STRING}
[L]
RewriteRule ^video/([0-9]+)/?(.*) view_video.php?vid=$1&%{QUERY_STRING}
[L]
RewriteRule ^search/([0-9]+)/?(.*)$
search_result.php?page=$1&%{QUERY_STRING} [L]
RewriteRule ^search/basic/?(.*)$
search_result.php?viewtype=basic&%{QUERY_STRING} [L]
RewriteRule ^search/detailed/?(.*)$
search_result.php?viewtype=detailed&%{QUERY_STRING} [L]
RewriteRule ^search/(.*)$ search_result.php?%{QUERY_STRING} [L]
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list