[Error 500] FUEL ENV htaccess

#1
I'm trying to use a FUEL ENV with the following .htaccess in the apache it runs smoothly when using litespeed it returns me 500 error and can not run the site.
Does anyone have any suggestions on how to solve the problem?
The site is within a folder called "novo"

my .htaccess
Code:
#SetEnv FUEL_ENV production
<IfModule mod_rewrite.c>
#    <IfModule mod_negotiation.c>
#        Options -MultiViews
#    </IfModule>

    RewriteEngine On
    RewriteBase /

    # Redirect root requests
    RewriteCond %{REQUEST_URI} ^/novo/$
    RewriteRule !^/ /novo/public/%{REQUEST_URI} [L]

    # Redirect API requests
    RewriteCond %{REQUEST_URI} ^/novo/cms/(.*)$
    RewriteRule ^cms/(.*)$ /novo/cms/public/%{REQUEST_URI} [L]

    # html5 pushstate (history) support
    RewriteRule img/(.*)$ /novo/public/assets/imgs/$1 [L,QSA]
    RewriteRule photos/(.*)$ /novo/cms/public/files/$1 [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /novo/public/#/$1 [L]
</IfModule>
 
#3
this looks wrong and won't match any URL.
how about change to
RewriteRule ^cms/(.*)$ /novo/cms/public/$1 [L]
Thanks, Managed by solving their application in the bass line that was blocking access.

Code:
# Redirect root requests
    RewriteCond %{REQUEST_URI} ^/novo/$
    RewriteRule !^/ /novo/public/$1 [L]
 
Last edited:

NiteWave

Administrator
#4
do you mean the issue has resolved by removing
Code:
# Redirect root requests
RewriteCond %{REQUEST_URI} ^/novo/$
RewriteRule !^/ /novo/public/$1 [L]
?
 
Top