Welcome! Log In Create A New Profile

Advanced

How to create rewrite?

Posted by xxx 
xxx
How to create rewrite?
February 08, 2011 04:36AM
Hi,
I' m a lame;)
How create rewrite to nginx?

This is my .htaccess

Options FollowSymLinks
RewriteEngine On
RewriteBase /p/


RewriteCond %{HTTP_HOST} !^www. [NC]

RewriteCond %{HTTP_HOST} ![0-9]$ [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301]


RewriteCond %{REQUEST_URI} ^\/$
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)$ pl/ [L]


RewriteRule ^(index.php)$ pl/$1 [L]


RewriteCond %{REQUEST_URI} ^/images.+$
RewriteRule ^.+(images/.+)$ pl/$1 [L]


RewriteRule ^(pl\/)([a-zA-Z0-9_-]+),{1}([0-9]+),{1}([0-9]+)$ $2,$3,$4 [R=301]
RewriteRule ^(pl\/)([a-zA-Z0-9_-]+),{1}([0-9]+)$ $2,$3 [R=301]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)([a-zA-Z0-9_-]+),{1}([0-9]+),{1}([0-9]+)$ pl/index.php?id=$3&idd=$4 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)([a-zA-Z0-9_-]+),{1}([0-9]+)$ pl/index.php?id=$3 [L]
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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