Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
c4ffe6f2
Commit
c4ffe6f2
authored
Jan 20, 2021
by
Dominik Hebeler
Browse files
removed all environments but production from robots.txt
parent
5cba2b67
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/views/robots/development.blade.php
0 → 100644
View file @
c4ffe6f2
User
-
agent
:
*
Disallow
:
/
\ No newline at end of file
public/robots.txt
→
resources/views/robots/production.blade.php
View file @
c4ffe6f2
User
-
agent
:
*
User
-
agent
:
*
Disallow: /klassik/meta/
Disallow: /en/klassik/meta/
Disallow
:
/
meta
/
Disallow
:
/
meta
/
Disallow
:
/*/
meta
/
Disallow
:
/*/
meta
/
Disallow
:
/
qt
Disallow
:
/
qt
Disallow: /en/qt
Disallow
:
/
en
/
qt
Disallow: /domains/
\ No newline at end of file
Disallow: /metager3/
Disallow: /alpha/
\ No newline at end of file
routes/web.php
View file @
c4ffe6f2
...
@@ -14,6 +14,17 @@ use Prometheus\RenderTextFormat;
...
@@ -14,6 +14,17 @@ use Prometheus\RenderTextFormat;
| to using a Closure or controller method. Build something great!
| 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
(
Route
::
group
(
[
[
'prefix'
=>
LaravelLocalization
::
setLocale
(),
/*,
'prefix'
=>
LaravelLocalization
::
setLocale
(),
/*,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment