I am having a problem with clean URLs not working properly. Neither my host's tech support, no the falks in the forums here were able to figure it out, so I took the liberty of posting it here. After weeks of searching and trying I really believe it is a bug and belongs in this section.

The problem is this:
I do a fresh installation of Drupal 4.6.3, and everything works "out of the box", i.e. I DO NOT change anything in any of the files except for the $db_url and $base_url in sites/default/settings.php per default installation instructions. I am using shared hosting, but I am allowed my .htaccess files, and mode_rewrite is enabled.

When my site is up, the first and only thing I do after registering the first user is go to the "administer - settings" page and change the "name" in "General settings" from 'drupal' to, say, 'test'. I click the "save configuration" button and the title of the site changes to 'test' as expected. I can also change other settings on this page in the similar manner.

However, as soon as I enable "Clean URLs", all the settings jump back to the default values, i.e. the name of the site is 'drupal' again. While "Clean URLs" are enabled, I cannot make any changes on this page - the settings jump back to the default values silently as soon as I hit the "save configuration" button. I do not get amy error messages in either drupal's or server's logs - I think that alone qualifies it for a bug.

If I turn "Clean URLs" back off, I again can make changes in the settings page, but the story repeats as soon as I enable the "Clean URLs" again...

The clean URLs themself look fine during the whole thing, and I can browse the site as well. Also, this problem shows up with Firefox and Opera in Windows, but not with IE. This has something to do with my host as well, since on my other host the exact same installation worked flawlessly. Both hosts have Apache.

I would REALLY REALLY appreciate any help on this matter!

Comments

heine’s picture

When I visit your sites
http://test.alchagirov.ru/
http://spartak-n.ru/

with Opera 8.5 they have the name Test, even with clean URLs enabled. What happens when you reload the pages in the browser?

gautam_chandna’s picture

I just visited

http://test.alchagirov.ru/
http://spartak-n.ru/

using Internet Explorer, Firefox 1.0.4, Opera 8.0a and Opera 8.5
Clean urls work fine on each.. and your site is named "Test" (as seen on both sites..)

You'll have to give us some more details about the problem...

-Gautam

lucky a’s picture

The first site (www.test.alchagirov.ru) is hosted with one provider (Peterhost.ru) and works fine. It is the other one (www.spartak-n.ru, hosted on masterhost.ru) that is buggy.

When I try to change settings with "Clean URLs" turned on, they roll back to the default values like I reported before. However, when I log off the site name shows as I saved it before with "Clean URLs" turned off (i.e. "test" instead of "drupal"). But as soon as I log back in it jumps to the default "drupal" again! I have a strong feeling it has something to do with caching or cookies, and not just on the client side, since purging cache and cookies in Firefox does not fix the problem.

The first user and password for the buggy www.spartak-n.ru is 'admin' and 'time2go'. It is just a blank installation of Drupal, so feel free to log in and poke around!

greggles’s picture

Lucky A -

This is probably a problem with the apache/php configuration on these hosts.

Many people use the clean urls without these problems, so it is probably something specific to your second host, as you mentioned in your investigation.

Can you look at phpinfo() information from both hosts and put the differences into a followup on the issue? That would help us in nailing down the problem so that anyone else with that config could fix the problem.

webchick’s picture

Category: bug » support
Priority: Critical » Normal
magico’s picture

Status: Active » Closed (fixed)