@Kier I do not have any vbulletin folder. My forum is in root, so when migrated, I delete vbulletin files and upload xf files.
I migrated from vb4 to xf1 some 3 years ago.
Only thing that I did is upload
this redirect scripts and all old vblinks redirect to xenforo. That all working. vB links redirect to xenforo links.
Only thing I change is edit 301config.php file to point to import log table.
When this adon show up, I delete all that files (redirect scripts) including 301config files, install this addon, in options of addon point to import log table but old links (vb links) shows 404 not found.
nginx 1.13.8
php 7.2.2
Code:
# cat /usr/local/nginx/conf/conf.d/pijanitvor.com.ssl.conf
# Centmin Mod Getting Started Guide
# must read http://centminmod.com/getstarted.html
# For SPDY SSL Setup
# read http://centminmod.com/nginx_configure_https_ssl_spdy.html
# redirect from www to non-www forced SSL
# uncomment, save file and restart Nginx to enable
# if unsure use return 302 before using return 301
server {
server_name pijanitvor.com www.pijanitvor.com;
return 301 https://www.$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name pijanitvor.com www.pijanitvor.com;
## redirect https non-www to https www
if ($host = 'pijanitvor.com' ) {
return 301 https://www.pijanitvor.com$request_uri;
}
ssl_dhparam /usr/local/nginx/conf/ssl/pijanitvor.com/dhparam.pem;
ssl_certificate /usr/local/nginx/conf/ssl/pijanitvor.com/ssl-unified.crt;
ssl_certificate_key /usr/local/nginx/conf/ssl/pijanitvor.com/pijanitvor.com.key;
include /usr/local/nginx/conf/ssl_include.conf;
# mozilla recommended
ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;
ssl_prefer_server_ciphers on;
#######################add_header Alternate-Protocol 443:npn-spdy/3;
#add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
#add_header X-Content-Type-Options "nosniff";
#add_header X-Frame-Options DENY;
#######################spdy_headers_comp 5;
ssl_buffer_size 1400;
ssl_session_tickets on;
#enable ocsp stapling
resolver 8.8.8.8 8.8.4.4 valid=10m;
resolver_timeout 10s;
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /usr/local/nginx/conf/ssl/pijanitvor.com/ssl-trusted.crt;
# ngx_pagespeed & ngx_pagespeed handler
#include /usr/local/nginx/conf/pagespeed.conf;
#include /usr/local/nginx/conf/pagespeedhandler.conf;
#include /usr/local/nginx/conf/pagespeedstatslog.conf;
# limit_conn limit_per_ip 16;
# ssi on;
access_log /home/nginx/domains/pijanitvor.com/log/access.log combined buffer=256k flush=60m;
error_log /home/nginx/domains/pijanitvor.com/log/error.log;
root /home/nginx/domains/pijanitvor.com/public;
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$uri&$args;
include /usr/local/nginx/conf/blockbots.conf;
}
### ORIGINAL ###
location /internal_data/ {
internal;
allow 127.0.0.1;
allow xxxxxxxxx;
deny all;
}
location /library/ {
internal;
allow 127.0.0.1;
allow xxxxxxxx;
deny all;
}
# prevent access to ./directories and files
location ~ (?:^|/)\. {
deny all;
}
include /usr/local/nginx/conf/staticfiles.conf;
include /usr/local/nginx/conf/php.conf;
include /usr/local/nginx/conf/drop.conf;
#include /usr/local/nginx/conf/errorpage.conf;
include /usr/local/nginx/conf/vts_server.conf;
}