Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Invoice Ninja 5 problems



Normal Mode | Print  

 Invoice Ninja 5 problems, .htaccess modifications needed? (1 Replies, Read 2796 times)
sparek
Group: Member
Post Group: Working Newbie
Posts: 74
Status:
Had some issues getting Invoice Ninja 5 to work from a Softaculous installation.

I'm not sure if it's Softaculous or Invoice Ninja that is adding stuff to the .htaccess file in the installation directory, but it would seem to me that some of this information is off.

First, shouldn't the top section:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule "^.env" - [F,L]
#  RewriteRule "^storage" - [F,L]
  RewriteRule ^(.well-known)($|/) - [L]

  RewriteRule ^(.*)$ public/$1 [L]
</IfModule>


Be changed to:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule "^.env" - [F,L]
#  RewriteRule "^storage" - [F,L]
  RewriteRule ^(.well-known)($|/) - [L]

  RewriteCond %{REQUEST_URI} !^/%installdir%/public/
  RewriteRule ^(.*)$ public/$1 [L]
</IfModule>


This fixes an infinite loop in the redirect.

And the bottom, the section:

<IfModule mod_alias.c>
RedirectMatch 301 ^/%installdir%/$ %scheme%://%domain%/%installdir%/public/index.php
</IfModule>


should be:

<IfModule mod_alias.c>
RedirectMatch 301 ^/%installdir%/$ %scheme%://%domain%/%installdir%/public/client/login
</IfModule>


Otherwise anyone going to %domain%/%installdir% is going to get to the admin login area.

I'm not an expert on any of this - but this has been my observations.  Thoughts?
IP: --   


Threads
 sparek   Invoice Ninja 5 problems, .htaccess modifications needed? (1 Replies, Read 2796 times)
    |--  Brijesh   Hi, Sorry for...   on May 3, 2022, 2:14 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is June 22, 2024, 3:33 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.035