Welcome! Log In Create A New Profile

Advanced

Re: Custom redirect for one page from https to http with different name.

Francis Daly
January 09, 2024 04:38AM
On Mon, Jan 08, 2024 at 02:22:14PM -0500, James Read wrote:

Hi there,

> how would I redirect https://example.com/oldname.php to
> http://example.com/newname.php

Within the https server{} block:

location = /oldname.php { return 301 http://example.com/newname.php; }

should do it.

(Other 30x numbers can work too.)

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Custom redirect for one page from https to http with different name.

James Read January 08, 2024 02:24PM

Re: Custom redirect for one page from https to http with different name.

Francis Daly January 09, 2024 04:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready