Removing /public/ from Snipe-IT URL when installing with Softaculous
Softaculous is great. It makes the installation of web-based applications [almost] as easy as downloading an app on your phone. This plug-and-play method can have disadvantages though…
Snipe-IT is built to use the /public subdirectory as the document root, but I’m not sure Softaculous can change the document root, so it makes a few other changes to keep things working instead. This is how to undo those changes and return equilibrium.
- Change your web server’s document root to the /public directory within your Snipe-IT installation directory.
- Edit the .env file to remove
APP_URLkey pair. Don’t leave a trailing slash.
- Edit the .htaccess file (the one in the installation directory, not in /public) and remove the following from the end
RedirectMatch 301 ^/$ https://your.domain.here
- SSH into your server, cd to the installation directory and run
Continue reading →