apache is consuming too much of my resources and i am already warned by vps provider i tried converters as well as fw articles to convert the code but all attempts went futile. so anyone can convert this apache .htaccess into nginx conf ? Options +FollowSymLinks RewriteEngine on RewriteRule ^mangas/([^/]+)/([^/]+)/$ - [F,L] RewriteRule ^mangas/([^/]+)/$ - [F,L] RewriteRule ^mangas(/?)$ - [F,L] RewriteRule ^([^/.]+)/([^/.]+)/([0-9]+)(/?)$ read-manga.php?manga=$1&chapter=$2&page=$3 [L] RewriteRule ^([^/.]+)/([^/.]+)(/?)$ read-manga.php?manga=$1&chapter=$2 [L] RewriteRule ^([^/.]+)(/?)$ read-manga.php?manga=$1 PHP:
Have you tried this? http://winginx.com/htaccess Note: It will only convert rewrite rules and not the whole of a .htaccess file, so make sure you just include the rewrite rules. You can read more about rewriting in Nginx here.
my favorite converter (htaccess to nginx conf) is http://www.anilcetin.com/ Code (markup): , for general use ist work, but not for special rules in httaccess.