mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-11-14 19:19:15 +03:00
robots.txt
This commit is contained in:
parent
6442e6121b
commit
d69827cbe7
2 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,13 @@ class MainController
|
|||
Page::set('FavAuthors');
|
||||
|
||||
}
|
||||
public static function robots() {
|
||||
echo 'User-Agent: *
|
||||
Disallow: /lk/
|
||||
Clean-Param: vid&gid&upd /photo/
|
||||
Host: https://'.$_SERVER['SERVER_NAME'];
|
||||
header("Content-Type: text/plain");
|
||||
}
|
||||
|
||||
|
||||
public static function logout()
|
||||
|
|
|
@ -11,6 +11,7 @@ class Routes
|
|||
public static function init()
|
||||
{
|
||||
Router::get('/', 'MainController@i');
|
||||
Router::get('/robots.txt', 'MainController@robots');
|
||||
Router::get('/t', 'MainController@t');
|
||||
Router::get('/login', 'LoginController@i');
|
||||
Router::get('/register', 'RegisterController@i');
|
||||
|
|
Loading…
Reference in a new issue