Page rules and .htaccess

pagerules

#1

Using Cloudflare CDN on one of my websites, everything seems to be working fine, however I also have some .htaccess rules which limits the accessibility of a subfolder based on IP address, as everything goes through Cloudflare this no longer works, disable HTTP and DNS proxy and it’s working again.

I have added a page rule in Cloudflare which should by pass the cache for the folder

*.$subdomain.$domain.com/$folder/*

but this doesn’t seem to work, any ideas as to what I am doing wrong with page rules?


#2

As long as your domain is set to :orange: in Cloudflare DNS, all traffic is routed through Cloudflare. Bypass Cache just means Cloudflare doesn’t store your data for the next visitor.

You need to restore Visitor IP. Quite often, hosts already have this installed, but here it is for Apache:

And NGINX:


#3

This topic was automatically closed after 14 days. New replies are no longer allowed.