0

I just started using Azure and created a Linux web app.

I followed the domain DNS tutorial and setup my domain : https://docs.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

Sujal Patel
  • 2,330
  • 1
  • 20
  • 36
Sam.tuver
  • 569
  • 2
  • 8
  • 19

1 Answers1

0

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>

More on this:

How can I remove "public/index.php" in the url generated laravel?

Apache rewrite for Laravel /public

Aaron Chen
  • 9,564
  • 1
  • 14
  • 26