CyberHosting

htaccess

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}]
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!