Reputation: 709
I just started using Azure and created a Linux web app.
I followed the domain DNS tutorial and setup my domain : https://learn.microsoft.com/en-us/azure/app-service-web/app-service-web-tutorial-custom-domain
I used the custom domain - text type
test.com does not point to the folder /site/wwwroot on the app.
I placed the site folder in /wwwroot
However, in laravel - the actual site is in /sitefolder/public
How do I point to this folder?
Thanks
Upvotes: 0
Views: 1727
Reputation: 9950
It has nothing to do with DNS. What you need to do is create a .htaccess
file containing the following code and place this file in Laravel's root directory.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
How can I remove "public/index.php" in the url generated laravel?
Apache rewrite for Laravel /public
Upvotes: 0