@extends('admin.layouts.app') @section('title', 'Robots.txt') @section('content')

Robots.txt

Manage your website's robots.txt file

{{ $fileExists ? 'File Exists' : 'File Not Found' }}
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif

Edit Robots.txt

What is robots.txt? The robots.txt file tells search engine crawlers which pages to crawl and which to avoid. This helps manage server load and prevents indexing of sensitive areas.
@csrf
@error('content') {{ $message }} @enderror
View File @csrf
Common Directives
User-agent: * Applies to all crawlers
Allow: / Allow crawling of entire site
Disallow: /admin/ Block admin directory
Crawl-delay: 1 Delay between crawls (seconds)
Sitemap: {{ url('sitemap.xml') }} Link to your sitemap

File Location
{{ public_path('robots.txt') }}
Current Status

@if($fileExists) File exists @else File not found @endif

If file doesn't exist, clicking "Save Changes" will create it.
@endsection