Question about forwarding


#1

Hi all,

I’m new to this. Search didn’t give me anything that could help ME solve the problem (not very experienced).

Here’s the problem:

My site is in WordPress and looks like this:

  1. https://apendix.my_domain.com

How can I configure Cloudflare forwarding to move all the requests that come with:

  1. *www.apendix.my_domain.com to
  2. (I can only post two links since I’m new, so this should be replaced with the link under 1)

I’m not clear with the * and $1 $2 and + marsk.

It worked on the host, before switching to Cloudflare’s name server, but can’t find a way to make it work here. On the host, it was simple. Just “told” in cPanel to move all the www requests to the non www version.

Thanks in advance for any help and advice.
Relja


#2

Not sure I explained right. The forwarding I need is,

from:
$1www.apendix.my_domain.com*
(* replacing any later files, folders etc.
$1 replacing http://, https://, or just nothing before the www)

to:
https://apendix.my_domain.com*


#3

Looks like I’ve figured it out. Settings that seem to work (if it helps anyone else):

Created a page rule:

www.apendix.my_domain.com/*

Set as “Forwarding URL” - 301 - permanent

Forward URL is made like this:

https://apendix.my_domain.com/$1

This redirects nicely all the www requests, except when using https instead of http with the www prefix. However, that isn’t used - all the old links were active while the site was without https (SSL encryption), so for now all is well. :slight_smile: