Clouddomate redirects subdomain to directory

I am trying to use Cloudflare to redirect:

http://sub.example.com -> http://example.com/sub 

But I'm rather this:

 http://sub.example.com -> http://example.com/subdomain 

Is it possible?

+5
source share
1 answer

This is possible using the Cloudflare Page Rules. On the Web Page page, click your site’s location, then select Page Rules . Then you can add each template you want. For example, for example:

enter image description here

For more information on the Cloudflare Page Rules, see the official website: http://blog.cloudflare.com/introducing-pagerules-url-forwarding/

+6
source

Source: https://habr.com/ru/post/1202972/


All Articles