| @@ 251-257 (lines=7) @@ | ||
| 248 | if (trim($robotsSettings->robots_settings)) { |
|
| 249 | echo $robotsSettings->robots_settings; |
|
| 250 | exit; |
|
| 251 | } else { |
|
| 252 | header('Content-type: text/plain'); |
|
| 253 | echo "User-agent: * \r\nDisallow: /"; |
|
| 254 | echo "\r\nHost: " . $this->input->server('HTTP_HOST'); |
|
| 255 | echo "\r\nSitemap: " . site_url('sitemap.xml'); |
|
| 256 | exit; |
|
| 257 | } |
|
| 258 | } else { |
|
| 259 | ||
| 260 | header('Content-type: text/plain'); |
|
| @@ 258-265 (lines=8) @@ | ||
| 255 | echo "\r\nSitemap: " . site_url('sitemap.xml'); |
|
| 256 | exit; |
|
| 257 | } |
|
| 258 | } else { |
|
| 259 | ||
| 260 | header('Content-type: text/plain'); |
|
| 261 | echo "User-agent: * \r\nDisallow: "; |
|
| 262 | echo "\r\nHost: " . $this->input->server('HTTP_HOST'); |
|
| 263 | echo "\r\nSitemap: " . site_url('sitemap.xml'); |
|
| 264 | exit; |
|
| 265 | } |
|
| 266 | } else { |
|
| 267 | header('Content-type: text/plain'); |
|
| 268 | echo "User-agent: * \r\nDisallow: /"; |
|
| @@ 266-272 (lines=7) @@ | ||
| 263 | echo "\r\nSitemap: " . site_url('sitemap.xml'); |
|
| 264 | exit; |
|
| 265 | } |
|
| 266 | } else { |
|
| 267 | header('Content-type: text/plain'); |
|
| 268 | echo "User-agent: * \r\nDisallow: /"; |
|
| 269 | echo "\r\nHost: " . $this->input->server('HTTP_HOST'); |
|
| 270 | echo "\r\nSitemap: " . site_url('sitemap.xml'); |
|
| 271 | exit; |
|
| 272 | } |
|
| 273 | } |
|
| 274 | ||
| 275 | /** |
|