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

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.