Hi

I normally have no problems moving a site to another server, but this is causing me some major headache at a time I am supposed to be handing it over.

This site worked perfectly on server A.
I moved a copy of it to another host B & it worked perfectly after I tried it in a folder of another site. After getting its own hosting account though, several issues have come up.

If I upload the site + the database, it shows only a frontpage with a broken layout, but no other page is found. The links are otherwise shown in the menus of the frontpage.

IF I remove the .htaccess file, the layout of the the frontpage is perfect BUT no other page is found.
I have tried using a virgin Drupal .htaccess file - no change.
& also one of a different Drupal site on same server where the site copy was working well from a folder - no change.

I tried installing a fresh copy of Drupal. this time the installation works, but in spite of trying out the steps mentioned on https://drupal.org/getting-started/clean-urls, no luck with getting clean urls to work.

So I am in a big dilemma. I can try to use the new site & fill in all the content from the old copy site, but its quite a lot & would as much as possible want to use the copy which is working perfectly elsewhere.

May be someone can see from my description what is wrong so I can use the copy which was actually a finished site. As I said, no link works, except the frontpage with a broken layout with .htaccess & with NO .htaccess, the frontpage layout is perfect BUT still no other page works!
So I cannot even log in!

This particular webhost server has at least 2 Drupal sites working perfectly on another account & as said, this one was also working ...

Any help will be very much appreciated.

Regards

Comments

VM’s picture

This sounds like something the host should be looking into considering clean urls on a fresh installation don't work. It sounds like a problem with the apache mod_rewrite module.

lionheart8’s picture

Ok, thank you for the quick response.
I think I will have to get in touch with the webhost.
Do you think this also explains the case of the "non-fresh installation" with the transferred site as well?
I have only encountered this issue with this host as I never have such problems transferring sites.
Regards

Jaypan’s picture

Look at the line referring to base_url in your .htaccess and see if working with that fixes your problem.

VM’s picture

$base_url is in setting.php
rewritebase is in .htaccess

nevets’s picture

Did you clear the cache tables and the sessions table in the copied database?

lionheart8’s picture

Thank you for your responses ...

I was forced to empty the cache menu table, for another reason when uploading the DB because of an error, but also ended up clearing all cache tables later, + sessions & watchdog later after seeing this in some post, but it makes no difference.

Yes, I am aware of the location of the lines in setting.php & .htaccess & actually have tried

# If your site is running in a VirtualDocumentRoot at http://example.com/,
 # uncomment the following line:
  RewriteBase /test
....
....

With the site in root directory, RewriteBase / ... did not make a difference. With a SEPARATE TRIAL NEW drupal installation, also this did not make clean urls possible.

In settings.php:

 * It is not allowed to have a trailing slash; Drupal will add it
 * for you.
 */
 $base_url = 'http://www.thesite.com/test';  // NO trailing slash!

UND =>

$base_url = 'http://www.thesite.com';  // NO trailing slash!

/*

made no difference to the transferred site.

For the trial Drupal installation, as said, all seems well BUT none of the above changes enables clean urls.

The technical section of Webhost support are unfortunately off for the Weekend.

This is the second site at this webhost. With the first one, I had to also make a clean installation - not big an issue then as this was a much smaller site, after getting some issues with transferring, but somehow after some struggle & gambling got clean urls t work, but cannot quite remember exactly what was done - without contacting support. This cannot however be that mysterious!

Of more interest however is not a new installation, but to get the transferred site to work with no single link apart from the front working! Very strange & annoying.

Thank you in advance for any further attention & help

Regards

lionheart8’s picture

I had to make the site completely anew as I could not find any way to make the completed & functioning copy of the site transferred from another server work.

It took me 2, 3 days to do everything. Quite a mystery though because this is the second site with the same host I have been forced to make anew after transferred completed copies failed to work showing the above symptoms.

I would suggest to the webhost what to change to favor transferring sites possible if I knew what the cause is, but I don't.

May be someone has had similar experience ....

Thank you for all your suggestions!

Regards