Elgg  Version 6.2
Variables
robots.php File Reference

Go to the source code of this file.

Variables

if(parse_url(elgg_get_site_url(), PHP_URL_PATH) !=='/') if (file_exists(elgg_get_root_path() . 'robots.txt'))
 Set robots.txt. More...
 

Variable Documentation

◆ if

if ( file_exists(elgg_get_root_path() . 'robots.txt')  )
Initial value:
{
if($failures) $new_user
Definition: register.php:33
elgg_login(\ElggUser $user, bool $persistent=false)
Log in a user.
Definition: sessions.php:81

Set robots.txt.

Examples
/root/Elgg/engine/classes/Elgg/FormsService.php, /root/Elgg/engine/classes/Elgg/Http/Urls.php, /root/Elgg/engine/lib/output.php, and /root/Elgg/engine/lib/views.php.

Definition at line 10 of file robots.php.