Kartz
Kartz

Reputation: 533

Yii2 - how to access html files in root folder?

Google wants to verify my website to delete my gmail app and create new one. I placed a file named deleteGAPPSnotBefore20151206utc.html in my root folder.

Google wants to access my website like site.com/deleteGAPPSnotBefore20151206utc.html.

How to achieve this in Yii2?

Upvotes: 0

Views: 874

Answers (2)

arogachev
arogachev

Reputation: 33538

You should place it in web accessible folder. In case of using advanced application, place it in frontend/web folder, in case of basic - in web folder.

Update: Also configure your web server to access this file "as is". For example for Nginx add it to index section:

index index.html index.htm index.php deleteGAPPSnotBefore20151206utc.html;

But remember this is temporary addition and don't forget to remove it after you finish with Google.

Upvotes: 1

joshua pogi 28
joshua pogi 28

Reputation: 532

use arogachev answer then browse in www.yourdomain.com/deleteGAPPSnotBefore20151206utc.html

Upvotes: 0

Related Questions