I think I might have made a bit of a mistake on the install, seems everything is redirecting to …/public/ which is a sub folder of /public_html/.
I have created a couple of companies that have billing so wondered if I could move the install to the correct directory without causing any issues?
hillel
January 30, 2021, 7:05pm
2
Hi,
If you move the app will need to update the APP_URL in the .env file.
It will cause previous email links to no longer work, you’d need to send new links.
I can do that.
So basically I can simply move all the files into the folder above “public_html” and then update the app URL and it should all work OK?
hillel
January 31, 2021, 5:22am
4
The best way to remove /public from the URL is to map the webroot to the folder public.
Alternatively it may help to uncomment this line:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule "^.env" - [F,L]
RewriteRule "^storage" - [F,L]
RewriteRule ^(.well-known)($|/) - [L]
# https://coderwall.com/p/erbaig/laravel-s-htaccess-to-remove-public-from-url
# RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
# https://github.com/h5bp/server-configs-apache/blob/master/dist/.htaccess
# ######################################################################
# # INTERNET EXPLORER #
# ######################################################################
I tried moving the installation and it just screwed everything up so uncommented the following line in the htaccess file:
RewriteRule ^(.*)$ public/$1 [L]
Now everything appears to be OK.
.env carries this line too:
APP_URL=https://billing.ninja/public