[solved] Error 404 - Page not found

#1
Sorry for my english.

I'm a newbie to LitespeedWebserver. I have just installed my fresh wordpress webiste on LSWS. Homepage display very well. But when I navigate to another links in this my webiste, LSWS display error: "404 page not found". I realize that in Wordpress Dashboard 'Permalink' settings, if I choose 'Plain' setting, LSWS work fine. But if I choose an another, error will occur.

Thanks in advance for helping me.
 
#3
Thanks for reply.

looks like .htaccess is missed. can you check if document-root/.htaccess exist.
Yeah, .htaccess file exist in my 'html' folder. This is .htaccess content:
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>

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

</IfModule>
# END WordPress
 
Last edited by a moderator:

Tishu

Well-Known Member
#6
Hello again,

So first check the log files for more information. In the htaccess i can see "RewriteRule ^/index\.php$ - [L]". The default line is "RewriteRule ^index\.php$ - [L]".
 
#7
Hello again,

So first check the log files for more information. In the htaccess i can see "RewriteRule ^/index\.php$ - [L]". The default line is "RewriteRule ^index\.php$ - [L]".
Thanks. I have edited .htaccess, but nothing changed.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]​
</IfModule>
# END WordPress
 

NiteWave

Administrator
#8
is virtual host from apache's httpd.conf or created in litespeed web admin(i.e.,native virtual host) ?
if it's latter one, please show web admin->virtual hosts-> General-> HT Access
 
#9
is virtual host from apache's httpd.conf or created in litespeed web admin(i.e.,native virtual host) ?
if it's latter one, please show web admin->virtual hosts-> General-> HT Access
Thanks for reply.

HT Access is default settings:
  • Allow Override: None
  • Access File Name:
It seem I haven't configured correctly. How do I do that?
 
#12
I have a similar issue but my server is OpenLiteSpeed. If I put the permanent settings to Plan, it works with subpages. Other than that, nothing else works. Please kindly advice
 
#14
I solved this problem by changing public_html permission settings to 750.
I checked my old hosting, it was 750. I don't know how come it changed to restricrted mod.
 
Top