Re: Force 302 to 301 redirect

2020-01-11 Thread tconlon
Hi, Found it, if ($page == 'index.php') { header("Location: ". $toUrl); probably need something like this https://forum.nginx.org/read.php?2,286700,286708#msg-286708 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/l

Re: Force 302 to 301 redirect

2020-01-11 Thread tconlon
Hi, Digging into the code will get back to you Thanks Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286700,286707#msg-286707 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Force 302 to 301 redirect

2020-01-10 Thread tconlon
Absolutely..and thanks Running this on Forge / Digital Ocean www.myurl.com # FORGE CONFIG (DO NOT REMOVE!) include forge-conf/www.myurl.com/before/*; server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name www.myurl.com; root /home/forge/www.myurl.com/c

Force 302 to 301 redirect

2020-01-10 Thread tconlon
Hi Team, I have a funny situation that I can't seem to get around. Here are the details. We had this naming convention to indicate a specific location: https://myurl/location/index.php?id=235 This naming convention is still out in the internet ether We changed to go to a slug based operation: