Skip to content

Instantly share code, notes, and snippets.

@BurlesonBrad
Created October 10, 2016 21:10
Show Gist options
  • Save BurlesonBrad/09a68fc84b1c80c78ce870e4826a9cec to your computer and use it in GitHub Desktop.
Save BurlesonBrad/09a68fc84b1c80c78ce870e4826a9cec to your computer and use it in GitHub Desktop.
C to the Dils
RewriteEngine On
RewriteCond %{HTTP_HOST} ^carriedils\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://carriedils.com/$1 [R=301,L]
// First line kinda obvious //
// Second line is the old URL //
// Line 3 is techinical server hooplah //
// This one says, "Yo. All three of my dubya's are gone. And, btw Google, this is a PERMANENT change (301) //
@cdils
Copy link

cdils commented Oct 10, 2016

You're awesome.

@cdils
Copy link

cdils commented Oct 10, 2016

@BurlesonBrad How do I incorporate that within this and not screw up everything?

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment