Welcome! Log In Create A New Profile

Advanced

Kindly help me convert this htaccess to nginx directives?

March 07, 2013 03:39PM
ErrorDocument 404 /
ErrorDocument 500 /

Options +FollowSymlinks
RewriteEngine on
RewriteBase /

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

RewriteRule ^([^\.\/\-]+)$ $1.php [L]

RewriteRule ^videos/([^\.\/]+)$ /video-file.php?id=$1 [L]
RewriteRule ^audios/([^\.\/]+)$ /audio-file.php?id=$1 [L]
RewriteRule ^notes/([^\.\/]+)$ /note-file.php?id=$1 [L]
RewriteRule ^exercises/([^\.\/]+)$ /exercise-file.php?id=$1 [L]
RewriteRule ^links/([^\.\/]+)$ /link.php?id=$1 [L]
RewriteRule ^class/([^\.\/]+)$ /class.php?slug=$1 [L]
RewriteRule ^subject/([^\.\/]+)$ /subject.php?slug=$1 [L]
RewriteRule ^author/([^\.\/]+)$ /author.php?username=$1 [L]

RewriteRule ^search/([^\.]+)$ /search.php?query=$1 [L]
SubjectAuthorPosted

Kindly help me convert this htaccess to nginx directives?

ubunifuMarch 07, 2013 03:39PM

Re: Kindly help me convert this htaccess to nginx directives?

Jonathan MatthewsMarch 07, 2013 06:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready