When first installed Drupal 6.0-b4, installer detected that my environment supports clean URLs and allowed me to enable.
Later and during my tests, I disabled clean URLs from admininstration and now I cannot re-enable it. When going to 'Clean URLs' page it shows message "Your system configuration does not currently support this feature..."

I'm using Nginx http server and never had any problem with Drupal rewrite rules. As already said, if reinstall Drupal 6 from scratch it founds Nginx as valid environment for clean URLs.

Comments

robloach’s picture

Try disabling Javascript in your browser and then going to the Clean URLs settings page...

chx’s picture

Priority: Critical » Minor

Until someone reproduces this on Apache, this is minor. Also, as Rob Loach mentions above it could be some JS problem....

ssb-1’s picture

After disabling Javascript, it worked allowing to rerun the clean URLs test.
However this is only a workaround, I still consider it as a Drupal bug need to be fixed.

wim leers’s picture

Status: Active » Postponed (maintainer needs more info)

ssb, as chx said, until somebody can reproduce it on a more widely used server (Apache, perhaps IIS and lighttpd too), this won't be fixed. Most people haven't even heard of the server you're using, so you can't expect them to fix that.

ssb-1’s picture

Status: Postponed (maintainer needs more info) » Needs review

Fix followes...

Line 17 of system.js has to be written as follow

-- var url = location.pathname +"admin/settings/clean-urls/check";
++ var url = location.pathname.replace(/\/[^\/]*$/, "/") +"admin/settings/clean-urls/check";

This way it cleans location.pathname, similarly to cleanURLsInstallCheck function.
Now it works on any http server, including Apache2, Nginx and Lighttpd (tested all).

robloach’s picture

Version: 6.0-beta4 » 6.x-dev
Status: Needs review » Needs work

I think we should first put settings.base_path into core, and then fix this problem.

robloach’s picture

I submited a patch which might help.... Mind testing it there?

gábor hojtsy’s picture

Status: Needs work » Closed (duplicate)

http://drupal.org/node/193804 contains a better fix and more wide reaching advantage.