RetailMan ERP System Docs
Login

Removing /public From URL

RetailMan ERP System is built on Laravel. In Laravel applications, the server should ideally point to the public folder as the web document root. If the server is not configured this way, the URL may show /public.


Enable URL Rewriting

If you are using Apache, make sure mod_rewrite is enabled.

If you are not sure how to enable it, contact your hosting provider or server administrator and ask them to enable Apache URL rewriting for your domain.

After enabling URL rewriting:

  1. Confirm the .htaccess file exists.
  2. Confirm the domain points to the correct application path.
  3. Open the application without /public in the URL.

Recommended Domain Setup

Avoid installing the application inside a subdirectory when possible.

Not recommended:

www.example.com/pos

Recommended:

pos.example.com

Recommended:

example.com

Best Server Configuration

For the cleanest URL, configure your domain or subdomain document root to point directly to:

application-root/public

This keeps application files outside the public web path and removes the need to show /public in the browser URL.


Update APP_URL

After fixing the URL, open .env and make sure APP_URL does not include /public.

Example:

APP_URL=https://pos.example.com

Save the file and clear application cache if needed.

Need Help?

Have a question about the software or documentation? Contact the team for help.

Explore RetailMan ERP System POS & ERP software