UPDATE Solved - see http://drupal.org/node/1167698.
Hello all
Short version - D7, clean URLs not working, but working elsewhere on same hosting space.
Long version - proper writeup here: http://drupal.org/node/1167698
I would really appreciate some help thinking this through, or better still a pointer about which direction to go in.
Other things I have read already:
http://drupal.org/node/256410
http://drupal.org/node/54425
http://drupal.org/node/951042
http://drupal.org/node/5590
http://awebfactory.com.ar/node/101
http://www.desiquintans.com/cleanurls
(and some others)
Nothing in that list of threads sprang out at me as "oh that's it". I did find some things to wonder about though.
Firstly there's the area of putting Drupal in a subdirectory, which some issues seem to hinge upon.
As I said in the original writeup, a clean install in an ordinary subdirectory on the same bit of hosting did have Clean URLs working, with the default .htaccess file. So that implies that changing .htaccess isn't necessary on this host purely for being in a subdirectory.
But set up for an addon domain, does Drupal "think" it's in a subdirectory or not? and would that make any difference? Could that be causing it to get confused?
I.e.: It is in a subdirectory "really", but it's being called as if it were in the root of http://www.addon-domain-example.co.uk, and Drupal has been "told" that's its domain.
Secondly: Are there other things I should be checking about my Drupal setup that would naturally be different in a clean install vs an uploaded copy of an offline dev site, and might warrant looking at? I don't want to assume that the problem is necessarily with .htaccess.
(I have updated settings.php and, as everything but Clean URLs seems to be working, my provisional hypothesis is I did that part correctly.)
Thirdly: http://drupal.org/node/951042 points to an apparent difference between D7 & D6 Clean URLs, and nearly all the other info I've found relates to D6 or previous. I'm wary of going all round the houses following information that's actually only valid for a previous version. Anyone else had D7 running in an addon domain without problems (or indeed after problems that they solved :-) )?
Any clues much appreciated.
Thanks
Jennifer
Comments
Re: Clean URLs on D7 - would really appreciate pointer(s) from p
To tell you the truth, I'm not at all sure what is meant by 'addon domain'. Your example didn't do it for me either. Maybe it's a subdomain.
How do you get to your site?
Is it example.com?
Is it newsite.example.com?
Is it example.com/newsite?
Is it newsite.com?
If it is example.com, and you also have newsite.com - then you are using a multisite drupal setup. Is that what you're doing? If so, you may want a sites.php file to direct traffic --
http://api.drupal.org/api/drupal/sites--example.sites.php/7
Addon domains
Thanks for taking an interest. Explanations...
http://support.hostgator.com/articles/cpanel/what-is-an-addon-domain
http://www.visn.co.uk/cpanel-docs/addon-domains.html
I'd never heard of it either before I got this hosting package! (which is a bit of a grumble I now have about Compila - the pre-signup info for their "two domains" package doesn't make it clear that one of the two is this type, and I found the learning curve non-trivial.) But they're a CPanel option, evidently not that uncommon. If you type "addon domain" into the Drupal site search, there are a number of threads. One of them I linked to from the original writeup, but its recommendation didn't solve my problem.
I'm pretty certain it's not the same as a Drupal multisite setup, though I'm not that familiar with those either.
Re: Addon domains
I am betting you are running a single site - newsite - on drupal. And because this is a new site - you still have the complete site on your dev machine?
And on your host, you mentioned earlier you first installed in one directory to test functionality - then moved to another directory, which was the webroot, where some functionality was deficient.
Directory names need to be consistent across moves. Is this information basically correct?
p.s. - it's the same drupal no matter where it is installed. It's behaviour is pretty consistent. Which is why it's a powerful tool.
Jumping over to other thread
Have written better explanation following your comment on the other thread!
http://drupal.org/node/1167698
thanks :-)