Discussion for various published PHP frameworks, including Zend Framework, CodeIgniter, Kohana, CakePHP, Yii, Symfony, and others.
Moderator: General Moderators
6 posts • Page 1 of 1
hey guys have any of you guys ever use laravel for production and had to migrate all the files from the PUBLIC folder to the root folder so that you website would open when you go to www.yourwebsite.com and not www.yourwebsite.com and not www.yourwebsite.com/public . What are the steps that you had to take ?
Document root should be pointing to /public/ on both dev and prod. Which files are you talking about moving?
DocumentRoot is generally specified in the VirtualHost definition.
Do i have to edit something in my laravel application ?? i am not sure , i am understanding you.
Should be done at the Apache level, not in Laravel itself. Worst case, you can try with an .htaccess file in the root that sends all requests through to /public/. Try to fix the vhost definition first, though.