Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

robots.txt in Laravel

I just was wondering if the robots.txt file is supposed to work like general robots txt files. So, you type for example "disallow/admin/*" place it into the the root Laravel folder and that's it.

Is it like this ?

like image 452
rolfo85 Avatar asked Dec 19 '22 11:12

rolfo85


1 Answers

Remember, that website address is relevant to public dir. So, if you want robots.txt to work in Laravel, it must be placed in the public folder.

like image 163
Michał G Avatar answered Jan 02 '23 16:01

Michał G