Correct htaccess settings for lsws and wordpress one click install

#1
Hi,
I installed LSWS + Wordpress through digitalocean one click. It was a smooth process. I then added a HTTPS certificate also successfully.
index1.html - a hello world file is successful through http:// as well as https://

My htaccess is in /usr/local/lsws/example/html/.htaccess with permission 666.

However -
1. Wordpress front page is working only on HTTP:// not HTTPS://
2. /wp-admin, /wp-content, etc FOLDERS are getting a 404, however they work when I write wp-admin/index.php
3. Wordpress permalinks (.com/product/name) are not working. Only ".com/?product=" style links are working.
4. Wordpress settings URL is currently set to http:// and not https://, however I tried both.

I suspect the problem is with the htaccess file as well as the vhconf for rewrite rules.
1. What are the correct configurations as well as a virgin htaccess file for LiteSpeed + Wordpress
2. Could I have messed up the permissions for the wp-admin folder or the htaccess?


I have spend days trying to fix this, can you please help.

A thousand thank yous in advance. I am a noob.
 
Last edited by a moderator:

Unique_Eric

Administrator
Staff member
#2
Hi shitij,

Sure. I just did a quick test by launching the image and setup SSL + SSL redirect, front page shows correctly and no wp-admin 404 issue with default theme.

Did you import your personal site?
Default doc root is under /var/www/html/, may i know how you point the .htaccess file?

Maybe it's faster if you can join LiteSpeed community and direct message me `@Eric` (Eric at LiteSpeed)
https://goo.gl/FG9S4N
 
Last edited by a moderator:
Top