Redirect Main Index to /client/login

When you go to the root site of my IN installation : “” it redirects to “” which is the admin login.

I would like to get the client portal to be the default. “” redirecting to “

I’ve tried messing around with .htaccess redirects to no luck. Any suggestions for how to hack this into working?

Of course index.php needs to remain accessible, we just would prefer to not expose our admin login as the default.


This isn’t currently supported, I believe there’s an issue on GitHub tracking the request.

Can’t even brute force a redirect? I don’t need the client login to be the base domain I just don’t want the base domain forcing to index.php

I’ve found A brute force solution. Thus far it hasn’t caused any issues.

Need to edit .htaccess in the base domain folder (not public)

Within the <IfModule mod_rewrite.c>

Add the following (replace with the site info)
Add this code BEFORE the existing public rewrite rule

  # Redirect the base domain to /public/client for
  # Only redirect if the request comes from a user agent browser
    RewriteCond %{HTTP_HOST} ^yoursub\.yourdomain\.com$ [NC]
    RewriteCond %{HTTP_USER_AGENT} ^.*\b(?:Mozilla|AppleWebKit|Chrome|Safari|Edge|Opera)\b.*$ [NC]
    RewriteRule ^$ /public/client [L,R=301]

Existing Rewrite Rule that needs to remain (or else it breaks the app):
RewriteRule ^(.*)$ public/$1 [L]