Wordpress in subdirectory

Discussion in 'General OpenLiteSpeed Discussion' started by ckissi, Jul 22, 2017.

  1. ckissi

    ckissi Member

    Hi,

    I'm having a hard time to make WP in subfolder work.
    I read all available help sources in this forum as well as on StackOverflow, unfortunately, nothing works for me.

    The WP is placed in subfolder blog so it should be accessible as http://www.example.com/blog/

    The home is working but no other permalink is working (posts, pages, categories as so on).

    I've tried to create static context "/blog/" with location "blog" and added following rules:

    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]

    I've also set the rewrite base to "/blog/" (tried also without this with no success)

    upload_2017-7-23_0-28-41.png



    upload_2017-7-23_0-28-8.png
     
  2. ckissi

    ckissi Member

    Fixed it...

    I had to add this to parent directory rewrite rules:

    RewriteCond %{REQUEST_URI} !/blog
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    It ignores the blog folder entirely
     
  3. lsfoo

    lsfoo Administrator

    Hi @ckissi

    Good to know that you were able to resolve your issue. We'll look into this!

    Thanks,
    Kevin
     

Share This Page