Fred.
Well-known member
Hi,
Can someone please help me out. I'm trying to find this out for 3 days now
I'm moving from Apache to Nginx.
These are my apache rewrite rules.
And this is what I have for nginx.
Xenforo is working but my old vbulletin url's are not. The url redirection scripts are in place.
I get
Error
Route algemeen/6349-thread-title.html could not be found.
Thanks!
Can someone please help me out. I'm trying to find this out for 3 days now
I'm moving from Apache to Nginx.
These are my apache rewrite rules.
Code:
# vBSEO to XF
RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.example\.com$
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule (.*) https://www.example.com$1 [R=301,L]
RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]
RewriteRule ^members/([^\.]+)\.html$ /member_redirect.php?username=$1 [R=301,L]
RewriteRule ^algemeen/$ /forums/algemeen.29/ [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
And this is what I have for nginx.
Xenforo is working but my old vbulletin url's are not. The url redirection scripts are in place.
I get
Error
Route algemeen/6349-thread-title.html could not be found.
Code:
rewrite ^(.*)$ https://$server_name$1 permanent;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
index index.php index.html;
}
location /internal_data/ {
internal;
}
location /library/ {
internal;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# vBulletin-VBSEO to XenForo RR
rewrite /[^/]+/([d]+)-.+-([d]+).html /showthread.php?t=$1&page=$2 last;
rewrite /[^/]+/([d]+)-.+.html /showthread.php?t=$1 last;
rewrite ^/members/([^.]+).html$ /member_redirect.php?username=$1 permanent;
rewrite ^/algemeen/$ /forums/algemeen.29/ permanent;
Thanks!