Community

403 Forbidden Error when Redirct happens!

SA
Sana Ali #1

I’m using the latest version of CyberPanel on Ubuntu 20.04, with my website in Laravel 8. I’ve routed the DNS through Cloudflare, but when the link redirects back to website, it shows a ‘403 Forbidden’ error. I’ve recorded a short video to demonstrate the issue. Can you please help me resolve this?

Video
Image2

lu
luckyrajpurohit #2

Disable waf and check again.if issue not persist after disabling the waf, enable waf again and disable the triggered rule.

SA
Sana Ali #3

Disable waf already disabled…
triggered rules disabled

still the same error :frowning:

Dr
Dreamer #4

What you can see in error logs?

SA
Sana Ali #5

no error logs…

lu
luckyrajpurohit #6

Triggered rule disabled without log not possible how did you?
Share .htacces or reset with default and check.

SA
Sana Ali #7
Options -MultiViews
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]

RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
RewriteRule ^(.*)$ public/$1

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ server.php
SA
Sana Ali #8
Options -MultiViews -Indexes
RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Sign in to reply