Welcome! Log In Create A New Profile

Advanced

Help with rewrite

September 04, 2011 06:46PM
Hi everyone,

I am using a plugin for my site called VBSEO

They use the following code:

--------------------------------------------------------
if ($request_filename ~ "\.php$" ) {
rewrite ^/(.*)$ /vbseo.php break;
}
if (!-e $request_filename) {
rewrite ^/(.*)$ /vbseo.php break;
}
--------------------------------------------------------

I read the article about IF IS EVIL and thought it would be better to make this code better.

Could someone who knows about the rewrites and nginx coding please help me.

I will post the results (if it's possible of course) to VBSEO so they can update there rules.

Kind Regards
Mick
Subject Author Posted

Help with rewrite

Mickie D September 04, 2011 06:46PM

Re: Help with rewrite

locojohn September 05, 2011 02:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 326
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready