Welcome! Log In Create A New Profile

Advanced

Apache .htaccess to Nginx rewrite question

June 12, 2011 03:57PM
Hello, I am having a tough time converting my .htaccess rewrite rules into Nginx, any help will be greatly appreciated.

Here is what I need converting

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/server-info
RewriteCond %{REQUEST_URI} !^/server-status
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} (.*).(gif|jpg|jpeg|png)$
RewriteRule ^(.*) http://%{http_host}/pictures/no_picture.jpg


RewriteRule ^video/([-_!~*'()a-zA-Z0-9]+)-([-_!~*'()a-zA-Z0-9]+) http://%{http_host}/?L=video.index&id=$2


Thanks
Subject Author Posted

Apache .htaccess to Nginx rewrite question

dflyguy June 12, 2011 03:57PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 308
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready