I have two domains (here are the actual domain names for simplicity):
I have one hosting account with GoDaddy, for the two domains. the primary domain is
snapstarr.com. I have some subfolders on
snapstarr.com/lockbox snapstarr.com/fuselog snapstarr.com/nomouse
at this point, you might notice that the 2nd subdirectory in that list is the same as the secondary domain listed at the top.
By default, when purchasing an add-on domain with GoDaddy, no additional redirecting needs to be set up (possibly common knowledge). so whan a visitor navigates to
fuselog.net, they see the website comprised of the files that are sitting in
fuselog.net remains in the address bar (with whatever slashes and autofills the browser appends to it).
that's all well and good and perfect, until a user navigates to
fuselog.net, fuselog.net/, www.fuselog.net, http://fuselog.net/, snapstarr.com/fuselog, http://www.snapstarr.com/fuselog/ etc. etc. and every other combination of trailing slashes and leading w's.
What I need is for every single one of the possible formats to bring the user to the same location, and also consistently show that in the browser's URL bar.
I have multiple reasons to want to do this. one, i simply don't want a visitor to see
snapstarr.com/fuselog in their browser bar. the sites are unrelated, and if someone ever navigates there, I want to change the URL to
www.fuselog.net, because that's the name of the site they're looking at.
There is also the issue of cookies.
www.fuselog.net are not the same place, to search engines or to browsers. I don't want to save my cookies with the "
.fuselog.net" trick, I'd rather just store everything as
www.fuselog.net, which I've read has a slight speed advantage also.
So in summary, I would like the following formats (and only these):
snapstarr.com/fuselog snapstarr.com/fuselog/ www.snapstarr.com/fuselog www.snapstarr.com/fuselog/ http://www.snapstarr.com/fuselog http://www.snapstarr.com/fuselog/ fuselog.net fuselog.net/ www.fuselog.net www.fuselog.net/ http://www.fuselog.net http://www.fuselog.net/
to show the website in the folder:
but always display:
in the browser bar.
If it's relevant: I need normal function of
snapstarr.com to be preserved. that is, the root of
snapstarr.com is its own site. Ideally, I'd like to see www's no matter what a user types or which domain they are trying to get to.
I have talked to many different people at GoDaddy, sometimes their "domain specialists", and we've gotten very close. in each attempt (two weeks worth). I'm able to get most, but not all of the conditions to be met. I've searched for and tried lots of mod_rewrite approaches and made a slew of custom .htaccess files.
I've ended up with inevitable redirect loops because I tried putting one in the root and one in the subdirectory.
I simply don't know enough about regular expression and mod_rewrite rules, and my head doesn't seem malleable enough to wrap it around this stuff.
I'll spare you the many RewriteCond's and RewriteRule's that I've tried, as I'm sure anyone capable of answering this question has seen them all. At this point I'm just hoping someone knows the order in which I need to place the rules and what their contents need to be. I appreciate any and all input, immensely.