Welcome! Log In Create A New Profile

Advanced

Re: vbulletin vbseo rewrite rule

Pierre Hureaux
March 03, 2014 11:34AM
Hi,

I use this :

rewrite ^/((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;

error_page 404 /404.php;

if ($request_filename ~ “\.php$” ) {
rewrite ^(.*)$ /vbseo.php last;
}

if (!-e $request_filename) {
rewrite ^/(.*)$ /vbseo.php last;
}

# We don't want to allow the browsers to see .hidden linux/unix files
location ~ /\. { deny all; access_log off; log_not_found off; }

location ~ /(images/|clientscript/).* {
access_log off;
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
try_files $uri $uri/ /vbseo.php?$args;
}

p.

Le 3 mars 2014 à 17:28, zuckbin <nginx-forum@nginx.us> a écrit :

> hi,
>
> i try to convert theses rules from apache for vbseo vbulletin, but got 404
> errors
>
> How to convert theses rules for nginx ?
>
> RewriteEngine On
>
> RewriteBase /forum/
>
> RewriteRule ^[^/]+/.+-([0-9]+)\.html$ vbseo.php?vbseourl=showthread.php&t=$1
> [L]
>
> RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$
> vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
>
> RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
> RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME}
> !/(admincp|modcp|clientscript|cpstyles|images)/
> RewriteRule ^(.+)$ vbseo.php [L,QSA]
>
>
> thanks,
> bye
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248039,248039#msg-248039
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

vbulletin vbseo rewrite rule

zuckbin March 03, 2014 11:28AM

Re: vbulletin vbseo rewrite rule

Pierre Hureaux March 03, 2014 11:34AM

Re: vbulletin vbseo rewrite rule

zuckbin March 04, 2014 05:11AM

Re: vbulletin vbseo rewrite rule

Pierre Hureaux March 06, 2014 05:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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