Convert htaccess to nginx !!!

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^facebook/search/(.)/(.)/$ facebook.php?act=search&$1=$2 [L]

RewriteRule ^facebook/search/(.)/(.)$ facebook/$1/$2/ [L,R]

RewriteRule ^facebook/(.)/chap-(.).html$ facebook.php?url=$1&chap=$2 [L]

RewriteRule ^facebook/(.*)/$ facebook.php?url=$1 [L]

RewriteRule ^facebook/(.*)/?$ facebook.php?url=$1 [L]

RewriteRule ^facebook/?$ facebook.php [L]

RewriteRule ^search/([a-zA-Z0-9-]+)/(.*)/page=([0-9]+)$ search.php?act=search&$1=$2&page=$3 [L]

RewriteRule ^search/([a-zA-Z0-9-]+)/(.*)page=([0-9]+)$ search/$1/$2/page=$3 [L,R]

RewriteRule ^search/([a-zA-Z0-9-]+)/(.*)/$ search.php?act=search&$1=$2 [L]

RewriteRule ^search/([a-zA-Z0-9-]+)/(.*)$ search/$1/$2/ [L,R]

RewriteRule ^b@ckup/$ b@ckup/ [L]

RewriteRule ^upanh/$ upanh/ [L]

RewriteRule ^home/$ home/ [L]

RewriteRule ^ads/?$ ads/ [L]

RewriteRule ^_admin/$ _admin/index.php [L]

RewriteRule ^fb/tenmanga/$ fb/tenmanga/index.php [L]

RewriteRule ^fb/ai-quan-tam-tui-nhat/$ fb/ai-quan-tam-tui-nhat/index.php [L]

RewriteRule ^fb/$ fb/index.php [L]

RewriteRule ^_admin/(.*)$ _admin/$1 [L]

RewriteRule ^e/([0-9]+)/?$ product.php?e=$1 [L]

RewriteRule ^LoaiTruyenLoaiTruyen/?$ search.php?act=LoaiTruyen [L]

RewriteRule ^LoaiTruyen/?$ product.php?act=LoaiTruyen [L]

RewriteRule ^tin/(.*)-([0-9]+)/page=([0-9]+) news.php?category=$2&t=$1&page=$3 [L]

RewriteRule ^tin/page=([0-9]+) news.php?page=$1 [L]

RewriteRule ^tin/(.*)-([0-9]+).html news.php?view=$2&t=$1 [L]

RewriteRule ^tin/(.*)-([0-9]+)/? news.php?category=$2&t=$1 [L]

RewriteRule ^tin/ news.php [L]

RewriteRule (.*)/embed/?$ truyen.php?url=$1&sub=embed[L]

RewriteRule ^Truyen_Moi/?$ search.php?act=new [L]

RewriteRule ^(.*)/truyentranhtuan/$ truyentranhtuan/ [L,R=301]

RewriteRule ^truyentranhtuan/?$ truyentranhtuan.php [L]

RewriteRule ^vechai/?$ vechai.php [L]

RewriteRule ^vechai/page=([0-9]+)$ vechai.php?page=$1 [L]

RewriteRule ^vechaipage=([0-9]+)$ vechai/page=$1 [L,R=301]

RewriteRule ^truyenxemnhieu/?$ search.php?act=mostview [L]

RewriteRule ^truyenxemnhieu/page=([0-9]+)?$ search.php?act=mostview&page=$1 [L]

RewriteRule ^danhsachtruyen/?$ search.php?act=all [L]

RewriteRule ^danhsachtruyen/page=([0-9]+)?$ search.php?act=all&page=$1 [L]

RewriteRule ^danhsachtruyenpage=([0-9]+)?$ danhsachtruyen/page=$1 [L,R=301]

RewriteRule ^danhsachtruyen/van/([a-zA-Z0-9_]+)/?$ search.php?act=all&van=$1 [L]

RewriteRule ^danhsachtruyen/van/([a-zA-Z0-9_]+)/page=([0-9]+)?$ search.php?act=all&van=$1&page=$2 [L]

RewriteRule ^danhsachtruyen/van/([a-zA-Z0-9]+)page=([0-9]+)?$ danhsach_truyen/van/$1/page=$2 [L,R]

RewriteRule ^blogtruyenpage=([0-9]+)$ blogtruyen/page=$1 [L,R=301]

RewriteRule ^blogtruyen/page=([0-9]+)$ product.php?cat=-1&page=$1 [L]

RewriteRule ^blogtruyen/?$ product.php?cat=-1 [L]

RewriteRule ^LoaiTruyen/(.*)-([0-9]+)/page=([0-9]+)?$ product.php?cat=$2&page=$3&caturl=$1 [L]

RewriteRule ^LoaiTruyen/(.)-([0-9]+),./page=([0-9]+)?$ LoaiTruyen/$1-$2/page=$3 [L,R=301]

RewriteRule ^LoaiTruyen/(.*)-([0-9]+)/$ product.php?cat=$2&page=1&caturl=$1 [L]

RewriteRule ^lich/?$ lichphathanh.php [L]

RewriteRule ^lich/(.*) lichphathanh.php?url=$1 [L]

RewriteRule ^(.)/LoaiTruyen/(.)-([0-9]+)/$ LoaiTruyen/$2-$3/ [L,R=301]

RewriteRule ^manga/([0-9]+)-(.)/chap/chap/chap-(.).html fixseo.php?id=$1&chap=$3 [L]

RewriteRule ^manga/([0-9]+)-(.)/chap/chap-(.).html$ fixseo.php?id=$1&chap=$3 [L]

RewriteRule ^manga/([0-9]+)-(.)/chap/chap/?(.)$ fixseo.php?id=$1 [L]

RewriteRule ^manga/([0-9]+)-(.)/chap-(.).html$ fixseo.php?id=$1&chap=$3 [R=301,L]

RewriteRule ^manga/([0-9]+)-(.)/(.)/chap$ /$2/ [R=301,L]

RewriteRule ^manga/([0-9]+)-(.)/(.)/chap-000.html$ manga/$1-$2/$3-chap-0 [L,R=301]

RewriteRule ^manga/([0-9]+)-(.)/(.)/chap-(.*).html$ manga/$1-$2/$3-chap-$4 [L,R=301]

RewriteRule ^manga/([0-9]+)-(.)/(.)-chap-(.*)$ chap.php?id=$1&url=$2&title=$3&chap=$4 [L]

RewriteRule ^manga/([0-9]+)-(.)/(.)/$ truyen.php?id=$1&url=$2&title=$3 [L]

RewriteRule ^manga/([0-9]+)-(.)/(.)$ truyen.php?id=$1&url=$2&title=$3 [L]

RewriteRule (.)/page/(.).html$ page/$2.html [L,R=301]

RewriteRule ^page/(.*).html$ page.php?content=$1 [L]

RewriteRule ^page/(.*)/?$ page.php?content=$1 [L]

RewriteRule ^playlist/(.*).dat getplaylist.php?url=http://www.nhaccuatui.com/api/playerv7.ashx?list=$1 [L]

RewriteRule ^([0-9]+)$ search/DoTuoi/$1/ [L,R=301]

RewriteRule ^(.)/page=/(.) $2 [L,R=301]

RewriteRule ^(.)/danhsachtruyen/(.) danhsachtruyen/$2 [L,R=301]

RewriteRule ^(.)/vechai/(.)$ vechai/$2 [L,R=301]

RewriteRule ^e/LoaiTruyen/(.)-([0-9]+),(.)/page=([0-9]+) LoaiTruyen/$1-$2/page=$4 [L,R=301]

RewriteRule ^e/LoaiTruyen/(.)-([0-9]+),(.)/ LoaiTruyen/$1-$2/ [L,R=301]

RewriteRule ^(.)/embed/LoaiTruyen/(.)-([0-9]+),(.*)/page=([0-9]+) LoaiTruyen/$2-$3/page=$5 [L,R=301]

RewriteRule ^(.)/LoaiTruyen/(.)-([0-9]+)/page=([0-9]+) LoaiTruyen/$2-$3/page=$4 [L,R=301]

RewriteRule ^(.)/LoaiTruyen/(.)-([0-9]+),(.*)/page=([0-9]+) LoaiTruyen/$2-$3/page=$5 [L,R=301]

RewriteRule ^(.)/LoaiTruyen/(.)-([0-9]+)(.*)?/page=([0-9]+)$ LoaiTruyen/$2-$3/page=$4 [L,R=301]

RewriteRule ^(.*)/blogtruyen$ blogtruyen/ [L,R=301]

RewriteRule ^(.*)/blogtruyenpage=([0-9]+)$ blogtruyen/page=$2 [L,R=301]

RewriteRule ^(.)/truyentranhtuan/(.) truyentranhtuan/$2 [L,R=301]

RewriteRule ^(.*)truyenxemnhieupage=([0-9]+)$ truyenxemnhieu/page=$2 [L,R=301]

RewriteRule ^(.*)truyenxemnhieu/page=([0-9]+)$ truyenxemnhieu/page=$2 [L,R=301]

RewriteRule ^(.)truyenxemnhieu/(.) truyenxemnhieu/$2 [L,R=301]

RewriteRule ^(.)/manga24h.com/(.) $2 [L,R=301]

RewriteRule ^vechai/vechai/(.*) vechai/$2 [L,R=301]

RewriteRule ^([a-zA-Z0-9_+-]+)/([a-zA-Z0-9_+-]+)/chap-(.*).html $2/chap-$3.html [L,R=301]

RewriteRule (.*)/search/TheLoai/([a-zA-Z0-9_+-]+)/page=([0-9]+)$ search/TheLoai/$2/page=$3 [L,R=301]

RewriteRule (.)/search/TheLoai/(.) search/TheLoai/$2 [L,R=301]

RewriteRule (.*)/chap-.html$ $1/ [L,R=301]

RewriteRule (.*)/chap-$ $1/ [L,R=301]

RewriteRule ^chap-(.*).html search.php?chap=$1 [L]

RewriteRule ^(.*)/chap-.html 404.php [L,R=301]

RewriteRule ^(.)/chap-(.)/doc-truyen-online.html$ $1/chap-$2.html [L,R=301]

RewriteRule ^(.*)/chap-000.html$ $1-chap-0 [L,R=301]

RewriteRule ^(.)/chap-(0+)(.).html$ $1-chap-$3 [L,R=301]

RewriteRule ^(.)/chap-(.).html$ $1-chap-$2 [L,R=301]

RewriteRule ^(.)-chap-(.)$ chap.php?url=$1&chap=$2 [L]

RewriteRule ^(.)/chap-(.).reload$ chap.php?url=$1&chap=$2&reload=true [L]

RewriteRule ^(.)/chap-(.)/doc-truyen-online.html$ chap.php?url=$1&chap=$2 [L]

RewriteRule ^(.*)/chap$ /$1/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^uploads/products/w50/(.*)$ /resizeimg.php?up_file=uploads/products/$1 [R,L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^uploads/products/h180/(.*)$ /resizeimg2.php?up_file=uploads/products/$1 [R,L]

RewriteRule ^(.*)/$ truyen.php?url=$1 [L]

–----------------------------------------------------------------------------------------------------

I will pay for this, i tried to use http://winginx.com/en/htaccess but no correct all so please don't use it anymore !

My yahoo: vaotam

Skype: bill.sin

Mail: vaotam@gmail.com

Or you can reply your information here i will pm you if you can convert it !

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct