Skip to main content

Greg McVerry

Correct syntax for archive

1 min read

In reply to.

The type of redirect you write is dependant on both yoru goals and your url structures. I set my site to redirect whenever a file is not found on my website:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^jgregorymcverry.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ https://archive.jgregorymcverry.com/$1 [R=301,L]