0

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

Sujal Patel
  • 2,444
  • 1
  • 19
  • 38
Sam.tuver
  • 679
  • 2
  • 9
  • 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,835
  • 1
  • 16
  • 28