Welcome! Log In Create A New Profile

Advanced

Redirect Question for Directory Structure Change

September 09, 2020 11:11AM
I'm looking for help with a permanent site-wide redirect.

I have a website that I moved to a new server.
For some crazy reason the old server had an odd structure that I am changing.
The URL root for the old site is http://threedaystubble.com/e/
I have changed it to be http://threedaystubble.com/

Example:
threedaystubble.com/e/gallery.html --- redirects to ----> threedaystubble.com/gallery.com

There are many other folders and html files that need this site-wide redirect.

Of course anyone can access the site when linking to the root, but there are many links out there referring to the old directory structure under /e/.
I'm looking for assistance writing a redirect so all those inbound links out there on the internet work again.

I tried a couple of ideas, but they didn't work,
I thought this location directive inside a server block was best, but it didn't work.

location = /e {
return 310 $scheme://threedaystubble.com;
}

Any help would be greatly appreciated.
Subject Author Posted

Redirect Question for Directory Structure Change

figshta September 09, 2020 11:11AM

RE: Redirect Question for Directory Structure Change

Reinis Rozitis September 09, 2020 12:04PM

Re: RE: Redirect Question for Directory Structure Change

figshta September 10, 2020 12:25AM

Re: RE: Redirect Question for Directory Structure Change

figshta September 10, 2020 01:45AM

RE: RE: Redirect Question for Directory Structure Change

Reinis Rozitis September 10, 2020 04:18AM

Re: RE: RE: Redirect Question for Directory Structure Change

figshta September 10, 2020 06:34AM

RE: RE: RE: Redirect Question for Directory Structure Change

Reinis Rozitis September 10, 2020 07:18AM

Re: RE: RE: RE: Redirect Question for Directory Structure Change

figshta September 10, 2020 09:45AM

Re: RE: RE: RE: Redirect Question for Directory Structure Change

figshta September 10, 2020 11:18AM

Re: Redirect Question for Directory Structure Change

J.R. September 10, 2020 10:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready