• Hello

    I have the following setup:
    Litespeed Server
    WP Multisite (subdirectory)
    Litespeed Cache
    Hide My WP Ghost


    Main site: example.com
    Additional site: example.com/site2

    Custom themes Path: core/views

    The problem is that for non-logged in users the css paths change to example.com/site2core/views instead of example.com/site2/core/views

    It is not everywhere, but only on part of the site.
    For logged in users, css looks like this:
    background-image: url("../svg/active.svg");

    When I go to the main site page ( example.com ) in incognito mode, the css looks like this:
    background-image: url(https://example.com/site2core/modules/ded47bld73/src/core/public/svg/active.svg)

    and should look like this:
    background-image: url(https://example.com/core/modules/ded47bld73/src/core/public/svg/active.svg)

    Also when I go to the secondary site page (example.com/site2) I also get the same link:
    background-image: url(https://example.com/site2core/modules/ded47bld73/src/core/public/svg/active.svg)

    Accordingly I get an error loading active.svg

    I don’t know how to fix it anymore, I hope for your help.

    Thank you!

    • This topic was modified 1 year, 3 months ago by moskalukigor.
Viewing 1 replies (of 1 total)
  • Plugin Author John Darrel

    (@johndarrel)

    Hi,

    It’s hard to tell why the sites in multisite don’t have the trailing slash at the end of the domain. Please check the sites link and edit the subsite to have the slash at the end of the domain.

    I know that Hide My WP Ghost also checks that situation and adds the slash when missing so it must be from relative paths.

    Try these solutions:

    1. Go to the subsites list in Multisite Network and add a slash to your subsite.
    2. Go to Hide My W> Tweaks > Change Options and activate the absolute URL option.
    3. Try on the subsite only with Hide My WP Ghost plugin active

Viewing 1 replies (of 1 total)
  • The topic ‘Incorrect path change in css files’ is closed to new replies.