CyberPanel Community

404 The resource requested could not be found on this server!

xr
xrecx #1

.htaccess is not working. Here is htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^login$ login.php
RewriteRule ^settings$ index.php?do=settings
RewriteRule ^create-video$ index.php?do=create-video
RewriteRule ^apis$ index.php?do=apis
RewriteRule ^create-api$ index.php?do=create-api
RewriteRule ^videos/page/(.)$ index.php?do=videos&page=$1
RewriteRule ^videos$ index.php?do=videos
RewriteRule ^videos/ index.php?do=videos
RewriteRule ^edit-video/(.
)$ index.php?do=edit-video&id=$1
RewriteRule ^remove-video/(.)$ index.php?do=remove-video&id=$1
RewriteRule ^edit-api/(.
)$ index.php?do=edit-api&id=$1
RewriteRule ^remove-api/(.)$ index.php?do=remove-api&id=$1
RewriteRule ^vid/(.
)$ play.php?vid=$1
RewriteRule ^remove-report/(.)$ index.php?do=remove-report&id=$1
RewriteRule ^reports/page/(.
)$ index.php?do=reports&page=$1
RewriteRule ^reports$ index.php?do=reports
RewriteRule ^users$ index.php?do=users
RewriteRule ^create-user$ index.php?do=create-user
RewriteRule ^clear$ index.php?do=clear
RewriteRule ^remove-user/(.)$ index.php?do=remove-user&id=$1
RewriteRule ^logout$ index.php?do=logout
RewriteRule ^edit-user/(.
)$ index.php?do=edituser&id=$1

RewriteRule ^raporlar/sayfa/(.)$ index.php?islem=raporlar&sayfa=$1
RewriteRule ^kirik-linkler/sayfa/(.
)$ index.php?islem=kiriklinkler&sayfa=$1
RewriteRule ^raporlar$ index.php?islem=raporlar
RewriteRule ^cikis$ index.php?islem=cikis

RewriteRule ^oynat/(.)$ oynat.php?hash=$1
RewriteRule ^drive/(.
)$ drive.php?hash=$1
RewriteRule ^mp4/(.).mp4$ mp4.php?hash=$1
RewriteRule ^subtitle/(.
).srt$ altyazi.php?hash=$1

How can ı do?

7 replies
xr
xrecx #4

I replace ^ this to ^/ but error logs:
2019-01-06 14:06:04.470325 [INFO] [172.69.55.114:30684] [REWRITE] Rule: Match ‘new/plugins/images/eliteadmin-text.png’ with pattern ‘^/login$’, result: -1
2019-01-06 14:06:04.470336 [INFO] [172.69.55.114:30684] [REWRITE] Rule: Match ‘new/plugins/images/eliteadmin-text.png’ with pattern ‘^/settings$’, result: -1
2019-01-06 14:06:04.470346 [INFO] [172.69.55.114:30684] [REWRITE] Rule: Match ‘new/plugins/images/eliteadmin-text.png’ with pattern ‘^/create-video$’, result: -1
2019-01-06 14:06:04.470355 [INFO] [172.69.55.114:30684] [REWRITE] Rule: Match ‘new/plugins/images/eliteadmin-text.png’ with pattern ‘^/apis$’, result: -1
2019-01-06 14:06:04.470365 [INFO] [172.69.55.114:30684] [REWRITE] Rule: Match ‘new/plugins/images/eliteadmin-text.png’ with pattern ‘^/create-api$’, result: -1
2019-01-06 14:06:04.470374 [INFO] [172.69.55.114:30684] [REWRITE] Rule: Match ‘new/plugins/images/eliteadmin-text.png’ with pattern ‘^/videos/page/(.*)$’, result: -1
2019-01-06 14:06:04.470383 [INFO] [172.69.55.114:30684] [REWRITE] Rule: Match ‘new/plugins/images/eliteadmin-text.png’ with pattern ‘^/videos$’, result: -1
2019-01-06 14:06:04.470393 [INFO] [172.69.55.114:30684] [REWRITE] Rule: Match ‘new/plugins/images/eliteadmin-text.png’ with pattern ‘^/videos/’, result: -1

Cy
CyberPanel #5

Try LiteSpeed Enterprise Free Starter if you don’t have much rewrite rules experience. With that you don’t need to modify rewrite rules at all.

xr
xrecx #6
Try LiteSpeed Enterprise Free Starter if you don't have much rewrite rules experience. With that you don't need to modify rewrite rules at all.

I can’t because my ram 4GB and ı have 4 domains.

Cy
CyberPanel #7

You need to master rewrite rules then, starting point is

https://openlitespeed.org/kb/migrate-apache-rewrite-rules-to-openlitespeed/

Ha
Harun #8

broken link ?

Sign in to reply