Htaccess not working — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberLoader

Htaccess not working

Hi I have followed the docs on the wiki but the htaccess is not working with mod rewrite

Here is my htaccess


Options +FollowSymLinks -MultiViews
ErrorDocument 404 /warning/notfound

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)/$ /$1 [L,R] # localhost
RewriteRule ^(.*)/$ /$1 [L,R=301] # live site use
RewriteRule ^play/(.*)-(.*).html$ play.php?slug=$1&id=$2
RewriteRule ^page/(.*)-(.*).html$ page.php?slug=$1&id=$2
RewriteRule ^category/(.*)$ category.php?name=$1
RewriteRule ^user/(.*)$ profile.php?name=$1
RewriteRule ^game/(.*)/(.*)$ game.php?do=$1&id=$2
RewriteRule ^game/(.*)$ game.php?do=$1
RewriteRule ^panel/(.*)/(.*)/(.*)$ panel.php?page=$1&type=$2&id=$3
RewriteRule ^panel/(.*)/(.*)$ panel.php?page=$1&type=$2
RewriteRule ^panel/(.*)$ panel.php?show=$1
RewriteRule ^login/(.*)/(.*)$ login.php?type=$1&code=$2
RewriteRule ^login/(.*)$ system/external/OAuth/login.php?app=$1
RewriteRule ^embed/game/(.*)$ api.php?type=game_embed&id=$1
RewriteRule ^api/user/(.*)$ api.php?type=user_data&id=$1
RewriteRule ^gamefeed/(.*)$ api.php?type=game_feed&$1
RewriteRule ^gamefeed$ api.php?type=game_feed
RewriteRule ^language/(.*)$ language.php?code=$1
RewriteRule ^forgot/(.*)/(.*)/(.*)$ forgot.php?do=$1&forgotcode=$2&email=$3
RewriteRule ^arcanox/(.*)/(.*)$ arcanox.php?type=$1&password=$2
RewriteRule ^warning/(.*)$ error.php?type=$1
RewriteRule ^search/(.*)$ search.php?s=$1
RewriteRule ^register/(.*)$ register.php$1
RewriteRule ^system/language.js$ system/external/language.php
RewriteRule ^system/captcha.png$ system/external/captcha.php
RewriteRule ^warning$ error.php
RewriteRule ^pending$ pending.php
RewriteRule ^panel$ panel.php
RewriteRule ^favorites$ favorites.php
RewriteRule ^settings$ settings.php
RewriteRule ^profile$ profile.php
RewriteRule ^leaderboard$ leaderboard.php
RewriteRule ^challenge$ challenge.php
RewriteRule ^login$ login.php
RewriteRule ^forgot$ forgot.php
RewriteRule ^register$ register.php
RewriteRule ^logout$ logout.php
</IfModule>

Options -Indexes
IndexIgnore *
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

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

In this Discussion