Home Forums WordPress Plugins Hide My WP Advice on Replace URLs + CDN

This topic is: not resolved
Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #5324
    Barbell
    Post count: 57

    Hi,

    So changing ID classes works fine with Replace in HTMl.

    But I’d like to change the url slightly as well.

    So instead of:

    <link rel=’stylesheet’ id=’maskedname-css’ href=’http://cdn.mysite.com/ext/658a2322/css/some-plugin.css&#8217; type=’text/css’ media=’all’ />

    This:

    <link rel=’stylesheet’ id=’maskedname-css’ href=’http://cdn.mysite.com/ext/658a2322/css/maskedname.css‘ type=’text/css’ media=’all’ />

    Or:

    <link rel=’stylesheet’ id=’maskedname-css’ href=’http://cdn.mysite.com/maskedname.css‘ type=’text/css’ media=’all’ />

    As long as the name is masked.

    The problem is that I can’t get it to work while using my CDN.

    Any idea if it can work with a CDN?

    What I used was:

    wp-content/plugins/my-plugin/css/myplugin.css == maskedname.css

    I’ve also used other combinations with the cdn path included or with the modified permalinks & URLs included in the URL but couldn’t get it to work.

    This works without the cdn activated but breaks with cdn activated.

    I’ll attach my HMWP settings in a private reply.

    #5325
    Barbell
    Post count: 57
    This reply has been marked as private.
    #5340
    Suman M.
    Post count: 12478

    Hi, you can change the IDs in tags but it’s not recommended to change ID/class names in other tags like <div class=”xyz”>; <div id=”xyz”>; <span class=”xyz”>; etc. as doing so might break site’s styling.

    The following replacement you have done is correct:
    wp-content/plugins/my-plugin/css/myplugin.css ==> maskedname.css

    But as you are using CDN, you’ll need to input your CDN URL in “CDN path” option under HMWP general settings tab – http://codecanyon.net/item/hide-my-wp-no-one-can-know-you-use-wordpress/4177158/faqs/17469

    • This reply was modified 9 years, 2 months ago by Suman M..
    #5389
    Barbell
    Post count: 57

    So I’ve just been testing.

    Without using a CDN it works. The URL to the stylesheet has changed and the layout is still intact. The replaced url now looks like http://www.mysite.com/maskedname.css

    But when I enter the CDN url in HMWP the replaced URL is not affected, it’s still http://www.mysite.com/maskedname.css

    While all other URLs to css, js etc. are linked to cdn.

    #5398
    Suman M.
    Post count: 12478

    Can you please let us know your website’s wp-admin login details (as private reply) so that we can have a look at the issue further?

    #5408
    Barbell
    Post count: 57
    This reply has been marked as private.
    #5413
    Suman M.
    Post count: 12478
    This reply has been marked as private.
    #5414
    Barbell
    Post count: 57

    I know, I use W3TC. I tried the cdn option of HMWP to see if I could get replace url above working that way. But it doesn’t work either way. Only works without using a cdn.

    #5443
    Barbell
    Post count: 57

    Have you had a chance to take a look yet?

    #5454
    Suman M.
    Post count: 12478
    This reply has been marked as private.
    #5468
    Barbell
    Post count: 57
    This reply has been marked as private.
    #5479
    Suman M.
    Post count: 12478

    For, s-p.css path you’ll need to add following in replace in html:
    http://www.mountmuscle.com/s-p.css => cdn.mountmuscle.com/s-p.css

    In HMWP to make use of multiple host names, remove cdn url from “cdn path” field in HMWP and add following replacements in “replace in html”:

    http://www.mountmuscle.com/dsgn => cdn.mountmuscle.com/dsgn/
    http://www.mountmuscle.com/file/ => cdn2.mountmuscle.com/file/
    http://www.mountmuscle.com/other/ => cdn3.mountmuscle.com/other/
    http://www.mountmuscle.com/ext/ => cdn4.mountmuscle.com/ext/

    #5506
    Barbell
    Post count: 57

    Alright thanks I’ll check it out, I saw you’ve made these changes.

    I’ve also activated W3TC and disabled CDN in W3TC. Since HMWP takes care if that with the above changes.

    Any idea if all these changes and replaced URLs I will be adding have a negative inpact on site speed (theoretically)?

    #5508
    Suman M.
    Post count: 12478

    It does not impact on site speed.

    #5547
    Barbell
    Post count: 57

    Thanks.

    I created another entry in Replace in HTML and Replace in URL like you’ve done.

    But for some reason my entry is not working when W3TC is activated, I’ve emptied all caches multiple times, also purged CDN and Cloudflare. It works fine with W3TC deactivated.

    Do you happen to have a clue why my entry is not working with W3TC activated?

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.