Welcome Guest. Please Login or Register  


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



Threaded Mode | Print  

 Invoice Ninja 5 problems, .htaccess modifications needed? (1 Replies, Read 2762 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: --   

Invoice Ninja 5 problems
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5664
Status:
Hi,

Sorry for the delay in response.

Can you please open a support ticket with the details so we can get this checked by our scripts team ?

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 25, 2024, 12:32 am.

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