Hi,
what is your "best practice" with /robots.txt file?
I have created CMS page with URL /robots.txt and Response:: like this:
function onStart(){
$content = "User-agent: *\nAllow:";
return Response::make($content)->header('Content-Type', 'text/plain');
}
This allows me to easily change content of robots.txt from backend.
I know about Mohsin's TXT plugin, but I wanted template based solution.
Last updated