Rewrite problem

Hi,

Just installed cyberpanel and created my first website.
I want to install Wordpress on it, so I clicked the “Install wordpress + LSCache”. I went into the wordpress admin, enabled lscache and changed my permalink settings to “postname” so the page loads as http://www.mydomain.com/sample-post/. Unfortunately when I click on the “Hello World” sample post, it gives me a 404 error. I have not changed any rewrite settings in Cyberpanel, so it’s out of the box settings. Any idea what might cause this problem? When using the standard plain permalink setting p123, it works fine but of course I don’t want it to behave like this. Any help would be appreciated. Thanks!

Nick

Hello !

Paste following in your rewrite rules file and restart OpenLiteSpeed

BEGIN WordPress

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

For more details:

http://open.litespeedtech.com/mediawiki/index.php/Help:Install:Quick_Install_WordPress

At the bottom you can see the rewrite rules difference for permalinks to work.

Thanks.

Thanks, works like a charm :slight_smile: