Skip to content

Instantly share code, notes, and snippets.

@martisj
Created November 25, 2012 22:27
Show Gist options
  • Save martisj/4145681 to your computer and use it in GitHub Desktop.
Save martisj/4145681 to your computer and use it in GitHub Desktop.
messed up htaccess
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
RewriteEngine On
RewriteBase /
#For martinsjastad.com
# automatically redirect user to www.martinsjastad.com
RewriteCond %{HTTP_HOST} !^www\.martinsjastad\.com [NC]
RewriteRule ^(.*) http://www.martinsjastad.com/$1 [L,R=301]
RewriteRule ^/frontsideinteractive/(.+) http://www.frontsideinteractive.com/$1 [R,L]
Redirect /frontsideinteractive/ http://www.frontsideinteractive.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment