PDA

View Full Version : complicated .htaccess question


chutney
02-25-2006, 08:42 AM
A month or so ago, I moved my main WordPress dealey from my Original Bluehost Domain to an Add-On Bluehost Domain. (Had the original name for three years and just needed a change.)

I would like to use htaccess to send all my traffic from Original Domain to Add-On Domain. I tried doing this in vain, and ended up using the old meta tag trick to send people over.

But that doesn't get the feed traffic, or people who try to pull up a specific page (say, from a search). Most of my site readership seems to have made the transition just fine, but most of my feed readership is quite the opposite.

Anyone have any ideas how to make this happen? All my previous htaccess attempts seem to break (both) sites. All I can figure is that there' must be some extra wrinkle involved because I'm dealing with Original Domain versus Add-On Domain.

Any ideas what that wrinkle might be? Or does the main domain vs. add-on hae nothing to do with it (and I'm just writing bad htaccess code)? ;)

2notch
02-25-2006, 02:12 PM
I think Ducati may have solved this already.

See thread:
http://www.bluehostforums.com/showthread.php?t=205

You also might want to P.M. him for help.

chutney
02-25-2006, 04:14 PM
Doesn't seem to be working for me.

What complicates my situation, and what makes it different from all the other htaccess threads here is this:

I am not simply pointing my main domain to a subfolder. And I not simply pointing my main domain to another domain.

I am pointing my main domain to another domain, and that other domain happens to be a subfolder within my main domain. Hence, the wrinkle.

Does anyone know a solution to this specific problem? If someone is sure that this isn't a wrinkle, please please please give me the exact htaccess code to use, because all the variations I've tried so far haven't worked.

2notch
02-25-2006, 09:45 PM
Okay I'm completely confused now. Can you give us some example links...
Like:
/home/maindomain/public_html/
needs to point to: /home/otherdomain/public_html/wordpress/

or...
/home/maindomain/public_html/
needs to point to: /home/maindomain/public_html/add_on_domain/public_html/wordpress/

I'm sure it can be done but I've got to get my brain wrapped around the structure of the sites. :confused:

Basil
02-26-2006, 04:01 AM
htaccess files do *not* work correctly on bluehost, I've been meaning to submit a ticket about this. A number of rewrite attempts simply refuse to work or end in errors, even though I know the code isn't wrong (and they work on my local server).

However, if you give me the URI of the feed and where you want it to go instead I can try and help you work something out.

chutney
02-26-2006, 08:26 PM
Yes, confusing is right! :)

/home/public_html/
(myirony.net)
needs to point to:

/home/public_html/makingchutney
(makingchutney.com, which is an add-on domain of myirony.net)

chutney
03-03-2006, 05:10 PM
htaccess files do *not* work correctly on bluehost, I've been meaning to submit a ticket about this. A number of rewrite attempts simply refuse to work or end in errors, even though I know the code isn't wrong (and they work on my local server).

However, if you give me the URI of the feed and where you want it to go instead I can try and help you work something out.

Any idea what their rationale for this is?? Seems kinda user unfriendly to me. If they're not going to set it up right, they owe us an explanation why and then a thorough and user friendly guide to workarounds.

Thanks for the help. The old feeds were at /feed/, /feed/atom/, /feed/rss2. (All in myirony.net.)

For simplicity's sake, they should all point to http://feeds.feedburner.com/MakingChutney.

vegasgwm
03-16-2006, 10:27 AM
htaccess files do *not* work correctly on bluehost, I've been meaning to submit a ticket about this. A number of rewrite attempts simply refuse to work or end in errors, even though I know the code isn't wrong (and they work on my local server).

However, if you give me the URI of the feed and where you want it to go instead I can try and help you work something out.

I found this post because I too suddenly got a problem with rewrite.
I just sent a ticket, waiting a reply. 2 weeks a go I moved my main site to a lower level folder and added the neccessary rewrite code in .htaccess to redirect visitors to the new location.
It worked fine up till this morning. I have not changed anything on the site for the past days.
I'm not an expert in url-rewite so, i thought that might be bad coding, but then why would it all work fine for 2 weeks.
My site relies heavily on url rewrite, i hope that what you're suggesting (rewrite on bluehost is bad) is not true