@extends('layouts.admin') @section('content')

SEO & links

Redirects

Redirects automatically send someone from an old or incorrect website address to the right page. They are useful after renaming a page or changing its URL so bookmarks and search results do not lead to a dead page.

Add a redirect

Example: If an old page was /old-about and the replacement is /about, enter those two addresses below and choose Permanent move (301).
@csrf

Current redirects

Permanent = old URL should stay replaced · Temporary = destination may change back

@forelse($redirects as $redirect) @php $typeLabel = match ((int) $redirect->status_code) { 301 => 'Permanent move', 302 => 'Temporary move', 307 => 'Temporary · advanced', 308 => 'Permanent · advanced', default => 'Redirect', }; @endphp
Old address{{ $redirect->source_path }}
Destination{{ $redirect->target_url }}
{{ $typeLabel }}Code {{ $redirect->status_code }} · {{ $redirect->is_active ? 'On' : 'Off' }}
@csrf @method('DELETE')
@empty

No redirects have been added.

@endforelse
@endsection