Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


BunnyCDN with Wordpress
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

BunnyCDN with Wordpress

pkrpkr Member

I created a Pull Zone for my Wordpress website. Since Wordpress has JS/CSS files in 2 different folders - wp-content and wp-includes, I used the link to my website (https://www.mywebsite.com) as the original URL in BunnyCDN pull zone. Now, the problem is BunnyCDN pull zone "mywebsite.b-cdn.net" has become a copy of my website i.e. all pages of "https://www.mywebsite.com" can be accessed from "mywebsite.b-cdn.net".

Google will definitely not like this. I tried to redirect "mywebsite.b-cdn.net" to "https://www.mywebsite.com" using .htaccess, but it did not work.
Can someone help me to fix this issue?

Comments

  • jahrincjahrinc Member

    Go to your zone and under the Security tab, enable the "Block root path access".

  • pkrpkr Member

    @jahrinc said:
    Go to your zone and under the Security tab, enable the "Block root path access".

    Thanks a lot. It worked.

    Thanked by 1jahrinc
  • WebProjectWebProject Host Rep, Veteran

    to avoid any issues, the BunnyCDN has a module for WordPress, two clicks and everything can be setup correctly.

  • pkrpkr Member
    edited June 2020

    @WebProject said:
    to avoid any issues, the BunnyCDN has a module for WordPress, two clicks and everything can be setup correctly.

    I have installed BunnyCDN plugin, but it does not have the option to block the access of the website using the pullzone.

  • sanvitsanvit Member

    You could also add edge rules,

    if path is */
    redirect to https://mydomain.com{{path}}

  • trewqtrewq Administrator, Patron Provider

    @pkr said:

    @WebProject said:
    to avoid any issues, the BunnyCDN has a module for WordPress, two clicks and everything can be setup correctly.

    I have installed BunnyCDN plugin, but it does not have the option to block the access of the website using the pullzone.

    @BunnySpeed

Sign In or Register to comment.