vbulletin vbseo rewrite rule
Pierre Hureaux
pierre.hureaux at crous-rouen.fr
Mon Mar 3 16:31:50 UTC 2014
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 at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list