Skip to content

Instantly share code, notes, and snippets.

@martisj
Last active December 11, 2015 15:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save martisj/4620654 to your computer and use it in GitHub Desktop.
doesnt rewrite to correct url
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
RewriteEngine On
#For martinsjastad.com and frontsideinteractive.com
# automatically redirect user from www.martinsjastad.com to martinsjastad.com
# automatically redirect user from www.frontsideinteractive.com to frontsideinteractive.com
RewriteCond %{HTTP_HOST} =www.martinsjastad.com [NC]
RewriteRule (.*) http://martinsjastad.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} =www.frontsideinteractive.com [NC]
RewriteRule (.*) http://frontsideinteractive.com/$1 [R=301,L]
@martisj
Copy link
Author

martisj commented Jan 24, 2013

When i try to go to www.martinsjastad.com the http response is Location: http://.com/ .....

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