Following, asmallorange was one of my candidates for shared hosting.
Laravel 5 deployment shared hosting
Hey, I have been trying to get my website up and running through asmallorange hosting. My folder set up is like the following:
laravelProject
-----website
-----------(all files associated with the laravel app)
public_html
-----.htaccess
-----public
----------index.php
----------(All public files associated with project)
The .htaccess file is as follows: AddType application/x-httpd-php56 .php
RewriteEngine on
Change domain.com to be your primary main domain.
RewriteCond %{HTTP_HOST} ^(www.)?domainname.org$
Change 'subfolder' to be the folder you want to redirect request to.
RewriteCond %{REQUEST_URI} !^/laravel/website/
Don't change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Change 'subfolder' to be the folder you want to use for your primary domain.
RewriteRule ^(.*)$ /$1
Change domain.com to be your primary domain again.
Change 'subfolder' to be the folder you will use for your primary domain
followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?domainname.org$
RewriteRule ^(/)?$ /public/index.php [L]
When I go to www.domainname.org the website will load the view but will not load the public folder files associated with the files. When I go to www.domainname.org/public/ it loads the view and loads the public folder files associated with the view (Yay!). When I click on any other links, however, non of them work(Will not load the view, or anything else). Its like it is not going back to my routes file and finding the appropriate path. Any advice would be great, thank you.
Please or to participate in this conversation.