Skip to content

Instantly share code, notes, and snippets.

@WillSquire
WillSquire / install_mod_expire_freebsd.md
Last active April 8, 2024 13:10
Install and configure mod_expire on FreeBSD

Install and configure mod_expire on FreeBSD

Open Apache config file:

sudo ee /usr/local/etc/apache24/httpd.conf

Ensure the following is uncommented, then save and exit the file (remove # if present at the start of the line):

@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/