• Resolved Argentum

    (@argentum)


    Hi,
    My site’s address, let’s say it is https://www.mysite.com.
    The WordPress files are residing in an directory one level down. We can call the directory ‘shop’.
    The absolute path to the root of my installment is:
    /user/public_html/
    The root only contains the index.php and the .htaccess file.
    The wordpress files are placed here:
    /user/public_html/shop/
    by using this setup for WordPress.

    Giving WordPress Its Own Directory


    Method II.

    By using the method II from the link above the URL are rewritten by the .htaccess so the visible url in the browser for the visitor is https://www.mysite.com (not https://www.mysite.com/shop/)
    I am using the Litespeed plugin. When the plugin writes to the .htaccess file, it writes to this file /user/public_html/shop/.htaccess
    But that .htaccess is overridden by the .htaccess in the root. So the plugin should write to /user/public_html/.htaccess
    I have found the Toolbox-Edit .htaccess settings where there is
    .htaccess Path Settings for
    Frontend .htaccess path
    Backend .htaccess path

    Problem is, whatever I put in these fields and save the settings, I receive a 403 error. Could you please explain how to use these settings?

    As it is now, I have to manually copy the code the plugin puts in /user/public_html/shop/.htaccess (where it have no effect) to the root .htaccess file
    /user/public_html/.htaccess

    All the best
    M

    • This topic was modified 4 years, 4 months ago by Argentum.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    frontend path set to /user/public_html/.htaccess

    backend to be /user/public_html/shop/.htaccess

    403 error is probably due to your mod_security or security plugin as when it detects “.htaccess” in request body or header, it will likely block it

    Best regards,

    Thread Starter Argentum

    (@argentum)

    Thank you. That was my guess too.

    If I manage to disable the security thing, will the plugin change both .htaccess files from the two different path settings?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    By design , yes , it will sync/update the both .htaccess when necessary

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘.htaccess Path Settings’ is closed to new replies.