#php #nginx #mod-rewrite
Вопрос:
как преобразовать правило nginx в htaccess я пытаюсь, но они не работают.
rewrite ^/sitemap.xml$ /xsitemap.php last;
rewrite ^/rss(.*)$ /rss.php last;
rewrite ^/(.*)/$ /index.php last;
rewrite ^/video$ /video/ permanent;
rewrite ^/ajax/getdownload /get_dl.php last;
rewrite ^/ajax/(.*) /ajax/ last;
rewrite ^/list/(.*)/page-([0-9] )$ /list/$1/page-$2/ permanent;
rewrite ^/anh-phim/(.*)-(.*)/bin/(.*)$ /thumb.php?src=https://$3amp;w=$1amp;h=$2 last;
rewrite ^/anh-phim/(.*)/bin/(.*)$ /thumb.php?src=https://$2amp;w=$1 last;