By bazzly on
I have been fighting to get my site working with ANHosting with no luck.
I uploaded my site, (its a mirror of what I have on my machine) and they gave me a temp url to access my site but none of my links work. I can access the main page, but get 404 not found if I click a link or try to log on.
I'm using clean URLS on my local machine and I'm wondering if it failing because its not supported by them? The other thing I was wondering....On my local machine I'm using apache 2 and in cpanel it shows they are using apache 1.3.41. I dont know much about apache but I guess that apache 1 (dumb I know)
So could that be the problem?
Thanks
Comments
Have you tried disabling
Have you tried disabling clean URLs to see if that solves the problem?
No... How would I do that?
No... How would I do that? Just set it up on my local machine than just upload everything again correct? Or do I have to try to reset each link somehow?
If you find that it is a
If you find that it is a clean URLs problem (by manually browsing to ?q=node etc), try to set the RewriteBase line in your .htaccess file (you do have one, don't you?) according to the temporary URL which they gave you.
Also examine the URLs of your broken links to see if there is something which doesn't feel right.
If you need more specific answers, you need to give us more specific URLs for everything that you notice.
Would it help if I post the
Would it help if I post the link?
As for the format of the links, everything looks correct.
How would I know what to place after the ?q=node? Something like ?q=node2?
Thanks.
It might help if you posted a
It might help if you posted a link, or at least tell us what the link looks like using example.com for everything you notice.
If http://example.com/node doesn't work but http://example.com/?q=node works, then it is a clean URL problem and my suggestions may help.
See also my answer here just an hour ago: http://drupal.org/node/378182
Notice how the provided link allowed me to be very specific.
Doing the set up like this
Doing the set up like this works set RewriteBase /~username
Thank you so much!
So when the domain is transfered would I # it out again?
One more question...once the domain is transfered should my subdomains automatically work? I have it set so my forums and blogs are subdomains.
example
example.com (main site)
forums.example.com
blogs.example.com
Thanks
=-=
have what set? by default drupal doesn't do anything with or for subdomains. Therefore you are either talking about a module you've installed or something else entirely.
I should rephrase that....My
I should rephrase that....My sub-domains as in the examples are different drupal sites that are linked as Primary links.
I think I'm gonna have to wait for the transfer to complete...It wants DNS to resolve.
That make sense?
Yes, normally everything
Yes, normally everything should work as soon as you change it to
RewriteBase /or comment it out with a # (which one is correct depends on the host).Well the links for the site
Well the links for the site work now...I just cant log on....using single logon and it keeps trying to resolve by dns and not the IP/directory. Dont know how to explain what I mean.
How does it know the domain
How does it know the domain name which it tries to resolve? Have you entered it anywhere in .htaccess or in sites/default/settings.php?
No I have not set any of
No I have not set any of that. I think I would have to set it by IP to get it to work. I wonder If I might just be better off waiting until the transfer is done that way I dont have to go hacking everything just for a temp fix.
That may be a good idea.
That may be a good idea. Personally when moving to a host I use a cheap unused domain name immediately, and when I am ready I move my normal domains as add-on domains. It is even cleaner that way, all in their own directories.
I am running many drupal
I am running many drupal sites in one ANHosting account without seeing any problem.
Can you tell me what kind of error you have met during installation? I believe it should be resulted from something else.
I did not use their install,
I did not use their install, this is an upload from my machine...
No errors...I dont know whats up. I also wonder if it might have anything to do with the domain transfer. I doubt it though...
I think I know WHY. I have
I think I know WHY. I have this experience before but not with ANHosting.
The temp url doesn't work well with mod_rewrite, which means if you rename the URL of your article with URL alias, the link will not work.
You can verify this by cleaning one of your article's URL alias, and try to visit it with {temp url}/node/{id}. If this is ok, then waiting till your domain have been fully transfer to ANHosting, and visit your site with your domain name, I think all of your pages will work well.
Please update your status if your site is in good status after you can access the site with the domain name
=-=
ensure that the .htaccess file was uploaded to the server from your local machine.
I was I checked that...Should
I checked that before and it is there...Should I need to mod it at all, or is the default ok?
=-=
If it's there follow cog.rustys advice
Usually with TEMP url's not
Usually with TEMP url's not everything works. Have you pointed the domain name to the server and then tried?