Tag Archives: Apache

htaccess Rewrite Cheatsheet

CODE: # Site has permanently moved to new domain # domain1.com to domain2.com RewriteCond %{HTTP_HOST} ^www.domain1.com$ [NC] RewriteRule ^(.*)$ http://www.domain2.com/$1 [R=301,L] CODE: # Page has moved temporarily # domain.com/old_page.html to domain.com/new_page.html RewriteRule ^old_page.html$ new_page.html [R,NC,L] CODE: # SEO / Pretty … Continue reading

Posted in Web | Tagged , , , | Leave a comment

Apache 2.2

I screwed up our server’s logging recently through lack of sleep, lack of caffeine reaction and silliness. In a word, I was tired and not paying attention. In /etc/apache2/sites-available/ you list all the configuration files for your websites. In /etc/apache2/sites-enabled/ … Continue reading

Posted in Geek | Tagged , , | Leave a comment