Welcome! Log In Create A New Profile

Advanced

Rewrite in Ngnix

xxx
April 21, 2012 02:11AM
Hi,
How convert to httacces from apache to nginx

My file htaccess is:

#Options FollowSymLinks

RewriteEngine on

RewriteRule ^vardata/(.*).php$ [R=404,L]
RewriteRule ^([a-zA-Z0-9_-]+).html$ index.php?op=$1
RewriteRule ^([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+).html$ index.php?op=$1&do=$2
RewriteRule ^([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+).html$ index.php?op=$1&do=$2&id=$3
RewriteRule ^([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+).html$ index.php?op=$1&do=$2&id=$3&qs=$4
RewriteRule ^([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+).html$ index.php?op=$1&do=$2&id=$3&qs=$4&ne=$5
RewriteRule ^([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+).html$ index.php?op=$1&do=$2&id=$3&qs=$4&ne=$5&nr=$6
RewriteRule ^([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+).html$ index.php?op=$1&do=$2&id=$3&qs=$4&ne=$5&nr=$6&ha=$7
RewriteRule ^([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+).html$ index.php?op=$1&do=$2&id=$3&qs=$4&ne=$5&nr=$6&ha=$7&hs=$8 [L]


HELP Me!
Subject Author Posted

Rewrite in Ngnix

xxx April 21, 2012 02:11AM

Re: Rewrite in Ngnix

Jonathan Matthews April 21, 2012 09:02AM

Re: Rewrite in Ngnix

xxx April 22, 2012 04:51AM

Re: Rewrite in Ngnix

Jonathan Matthews April 22, 2012 05:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
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