Welcome! Log In Create A New Profile

Advanced

Help with converting .htaccess to nginx rewrite

Posted by deepmob 
Help with converting .htaccess to nginx rewrite
January 16, 2011 07:40AM
Hi there

I was using a script for imagehosting

it got .htaccess file

but when I move to nginx the url is giving some problem.

I am not very good with coding so I am asking for some help with you guys.

[code]
Options +FollowSymLinks

RewriteEngine on
##point to installation directory
##if it is the root dir,enter /
##else /otherdir
RewriteBase /

## uncomment(i.e:remove # ) below lines if the static url doesn't work
## and rename files show.php -> show2.php, out.php -> out2.php, view.php -> view2.php, images.php -> images2.php,
#RewriteRule ^show\.php/(.*)$ show2.php?img=$1 [L]
#RewriteRule ^out\.php/([a-z]{1})(.*)$ out2.php?$1=$2&%{QUERY_STRING} [L]
#RewriteRule ^view\.php/(.*)$ view2.php?img=$1 [L]
#RewriteRule ^images\.php/([a-z]{1})(.*)$ images2.php?$1=$2&%{QUERY_STRING} [L]

RewriteRule ^users/(.*)\.html$ user.php?user=$1 [L]

RewriteRule ^gallery/([0-9]+)-([^/]*)/(.*)$ gallery.php?gal=$1&img=$3 [L]
RewriteRule ^viewimg/([0-9]+)-([^/]*)/(.*)$ gallery_body.php?gal=$1&img=$3 [L]


[/code]


Please help me thanks



Edited 1 time(s). Last edit at 01/16/2011 07:50AM by deepmob.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 102
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready