CyberHosting

[CakePHP] Rewrite rule not work

edited September 2018 in Web Server
Hello, I just installed CyberPanel. Then I uploaded my website created from CakePHP. Previously I tested with Apache and it worked perfectly. But it turns out that my website doesn't work on CyberPanel, all pages are error 404 Not found, even the main page.

This is the configuration that I use

RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]

RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]

I have followed this guide:
https://docs.cyberpanel.net/doku.php?id=rewrite-rules
and this
https://blog.cyberpanel.net/2018/04/07/how-to-write-rewrite-rules-for-openlitespeed/

Thank you for the help
Tagged:
Tagged:

Comments

Sign In or Register to comment.
CyberHosting CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!