CyberPanel Community

htaccess

ju
julianodls #1

I’m having trouble working with multiple htaccess files, OPENLITESPEED does not recognize

/home/exemple.com/public_hmtml/.htaccess

RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]

/home/exemple.com/public_hmtml/public/.htaccess


Options -MultiViews

RewriteEngine On

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

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

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

Sign in to reply