Welcome! Log In Create A New Profile

Advanced

Re: Help with rewrite

September 05, 2011 02:13PM
the first "if" can be replaced with the following:


location ^.+\.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/vbseo.php;
fastcgi_pass ....; # your fastcgi handler
}

not sure that the second "if" is needed, unless they meant to handle all non-existing files (404 errors) with vbseo.php. this can be done with the following:

location / {
error_page 404 = /vbseo.php;
}

Andrejs
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: 158
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