Home Forums WordPress Plugins Hide My WP Hiding URL in Replace URL setting

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27381
    ersalabert
    Post count: 5

    Hi,

    I’m having issues when hiding a URL containing a path to a CSS file. I can change the ID and the file name of the CSS file in the Replace in HTML and Replace URLs sections respectively. However, by only changing the file name, the URL still loads in the browser if a user clicks on the link in the View Source page, and if the CSS file is specific to a WP plugin for example, there is data in the CSS that identifies the plugin is for WordPress.

    When I add another rule in the Replace URLs section with the path to the respective CSS file that’s been renamed, and set the option to Hide (404), the file is not accessible, but I lose the CSS settings the CSS file contains and the site’s design is now broken.

    How can I achieve a user not accessing the CSS file and also changing the name of the CSS file without breaking the site’s design?

    Thanks in advance.

    #27382
    Suman M.
    Post count: 12478

    Hi, if you set the url to return 404 (not found), that means the particular CSS is not available and as a result site is broken. Please replace the URL only to hide default wordpress path/name in it. If you need to remove comments in the CSS/JS files then you’ll need to use minification plugin like Autoptimize.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.