Welcome! Log In Create A New Profile

Advanced

Re: Force 302 to 301 redirect

January 11, 2020 08:35AM
Hi,

Found it,

if ($page == 'index.php') {
header("Location: ". $toUrl);

probably need something like this

<?php
// 301 Moved Permanently
header("Location: ",TRUE,301);

thanks
Subject Author Posted

Force 302 to 301 redirect

tconlon January 10, 2020 03:03PM

Re: Force 302 to 301 redirect

cooley.josh@gmail.com January 10, 2020 03:11PM

Re: Force 302 to 301 redirect

tconlon January 10, 2020 03:17PM

Re: Force 302 to 301 redirect

Francis Daly January 10, 2020 06:04PM

Re: Force 302 to 301 redirect

tconlon January 11, 2020 08:29AM

Re: Force 302 to 301 redirect

tconlon January 11, 2020 08:35AM

Re: Force 302 to 301 redirect

Francis Daly January 11, 2020 09:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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