Commit c4ffe6f2 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

removed all environments but production from robots.txt

parent 5cba2b67
User-agent: *
Disallow: /
\ No newline at end of file
User-agent: *
Disallow: /klassik/meta/
Disallow: /en/klassik/meta/
Disallow: /meta/
Disallow: /*/meta/
Disallow: /qt
Disallow: /en/qt
Disallow: /domains/
Disallow: /metager3/
Disallow: /alpha/
\ No newline at end of file
Disallow: /en/qt
\ No newline at end of file
......@@ -14,6 +14,17 @@ use Prometheus\RenderTextFormat;
| to using a Closure or controller method. Build something great!
|
*/
Route::get("robots.txt", function(Request $request){
$responseData = "";
if(App::environment("production")){
$responseData = view("robots.production");
}else{
$responseData = view("robots.development");
}
return response($responseData, 200, ["Content-Type" => "text/plain"]);
});
Route::group(
[
'prefix' => LaravelLocalization::setLocale(), /*,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment