I have two domains (theartfcollage.com and designartcraft.com) pointing to the same server, the latter is hosted in a subfolder.
Up until a couple of weeks ago, the htaccess was handling this (mostly) fine, then it inexplicably broke and designartcraft.com ceased to work.
The original htaccess was:
---
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} design
RewriteRule (.*) http://theartofcollage.com/designartcraft.com/$1 [P,L]
---
Changing it to:
---
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?designartcraft.coMicrosoft
RewriteRule ^(/)?$ designartcraft.com [L]
---
Made
designartcraft.com work again, but now the urls are showing the subdirectory like "
http://designartcraft.com/designartcraft.com/[rest of url]", whereas the old one, when it worked, didn't do this (it would resolve to "
http://designartcraft.com/[rest of url]", as it is supposed to).
Can't quite parse the airy-fairy world o' htaccess!
Edit: WTF's up with the "Microsoft" filter on m-dollar sign? Gimme a break!
EDITED: 9 Aug 2014 13:27 by DSMITHHFX