Well, I feel like an idiot.
This is my first drupal installation, and things have gone really well, I'm thrilled.
I installed drupal using simplescripts on my shared hosting environment. May not be classy, but it worked nicely.
I installed it into a /drupal folder, thinking I would just mess around with the thing. But then I themed it, installed ubercart, and customized all sorts of little details, and man! It was ready to go live!
So I read a bunch of posts about moving things, and it seemed pretty straightforward. I downloaded my whole drupal folder as a backup (via ftp... not the way to go i think) and then I moved all the files to the root directory and everything seemed to be working perfectly (again via ftp).
I deleted my old drupal folder. Which i think was a mistake.
Now, everything works fine as an unauthenticated user. But randomly, and inconsistantly, but maybe 50% of the time, links i click on within my store go to mydomain.com/drupal?=node/... instaid of mydomain.com/?=node/...
and I get a fat 404 Not Found. This happens at very inconvenient times.
Things i've tried:
1) Uncommented the $base_url from the settings.php file and set it to http://www.mydomain.com
2) cCeared my cache in the performance page. However, clicking the button sends me to a 404. I'm not sure if that's on the redirect back to the page, or during executing the actual command.... so I don't know if its working or not.
3) RewriteBase / added to my (very sparse) .htaccess file.
Now after reading more, I found out that I was supposed to use my cpanel file manager to move the files, and merge the .htaccess files. Since that file was invisible i dont think its around any more and didn't get downloaded or moved. DAMN!
Everything else seems to be fine, but its a massively irritating problem.
I've heard that i'm supposed to go into phpmyadmin and empty (not drop) all the tables that say "cache" in their name. Honestly that scares me. But if someone tells me it will fix the problem, i'll do it.
The problem i'm having goes something like this.
click a link > 404 error.
click back
click the link again >404 error.
click back
click the link again > works perfectly
click back
click the link again >404 error.
That's a little crazy for me...
What do i do!?
Right now my .htaccess file looks like this:
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
RewriteBase / I'd imagine there's supposed to be more in there than that but i have no idea what...
Thank you all for your help, I'm sorry if this is posted somewhere and I just cant put it all together.
Be well
-Avery
Comments
Another piece to the puzzle
I have found a key piece of the puzzle:
If i watch the http headers, when it pulls up a failed page it's doing this:
HTTP/1.x 302 Moved Temporarily
Date: Sat, 12 Dec 2009 02:19:06 GMT
Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.11
Thanks again in advance for your help!
-Avery
Hurray!
I called bluehost, and they re-created my .htaccess file, and now it works perfectly!
Hurray!
-Avery
Hi Avery, I'm getting ready
Hi Avery, I'm getting ready to do something similar and also have my sites hosted on bluehost. Can you share with me what they changed? I have my sites in http://www.ronaldmcdonaldhouse-ct.org/cms and want to move the files to http://www.ronaldmcdonaldhouse-ct.org/. I saw in some other posts that the .htaccess file needs to be updated. Do I uncomment the RewriteBase / ?
Any light you can shed on this will be appreciated.
I found this thread to be
I found this thread to be helpful. thanks
http://drupal.org/node/3366