By drum5ormore on
Alright, I know that clean URLs work on my system because it's worked before with Drupal 5. With 5x, however, I always had to run the clean URL test before it would enable the clean URL radios. There appears to be no such test in Drupal 6, and as such the radios are completely disabled.
I've uploaded, the .htaccess file, it has correct permissions, I uncommented RewriteBase / and the radios are still disabled.
I also know it works because my co-workers have been able to enable clean URLs for 6x without mishap, and we're all on the same server.
Is there some way I can force it to enable clean URLs, without having to use the form? Any other help would be appreciated as well.
Thanks,
Ethan
Comments
Do you get a notice at
Do you get a notice at ?q=admin/settings/clean-urls:
"Your server has been successfully tested to support this feature.
Have you checked out: http://drupal.org/node/15365
Thanks for the reply. No
Thanks for the reply.
No notice of that sort, only a "configuration does not seem to support etc etc" message at the bottom. But like I said before, whenever I ran the manual clean URL test in Drupal 5, it would work correctly and allow me to enable clean URLs. This installation, apparently, has decided there's no chance clean URLs will work on my system and will suffer no argument to the contrary.
I have checked out the handbook page--fairly extensively--and have made whatever changes I could, based on their suggestions. But alas, it still no' work.
Basically, though, the purpose of this post is to see if there's some way to force Drupal to enable clean URLs. Frankly, I don't believe that my system doesn't support clean URLs (for as I've explained in my messages...it does), and I just want to make the darn thing do it anyway. As I've said before, however, the clean URL radios are disabled, and I know of no other way to enable clean URLs (except maybe adding a line in the variable table, but Drupal doesn't seem to use that table to save the clean URL boolean data in version 6).
So if anyone knows of a way to do this, please hook me up.
Thanks,
Ethan
Well, just thinking out loud
Well, just thinking out loud while I poke around a bit:
You should be getting a message: "Your system configuration does not currently support this feature. The handbook page on Clean URLs has additional troubleshooting information."
The modules/system/system.js file has some of the code to do the Clean URL check. Looks like you need Javascript enabled to do the check (it's AJAXified)... nope, you can turn off Javascript (use the WebDeveloper toolbar in FF) and you get a slightly different page with the Clean URL test link.
admin/settings/clean-urls/check is the URL to the check. Looks like it just gives false or true. Don't know what it's checking, because I don't understand menu callbacks, yet.
As I recall, I had this problem initially with D6 because I neglected to upload .htaccess -- Macs hide any file with a leading '.' and I didn't see the file when I uploaded the others.
Hope some of my rambling helps.
Thanks for all your
Thanks for all your replies...it turns out the client I had been working on was setup with the wrong hosting package.
A procedural error :).
Hello. I am having the same
Hello. I am having the same difficulties. I've opened a bug report on it.
http://drupal.org/node/282901
If anyone else is experiencing the same, please enter your details into the bug report so we can get it sorted out as soon as possible!
----
Brian Vuyk
Web Design, SEO and Applications Development
Long Sault, ON, Canada
Phone: 613-534-2916
brian@brianvuyk.com | http://www.brianvuyk.com
I'm having the exact same
I'm having the exact same problem. When I go to ?q=admin/settings/clean-urls/check I get the following result: { "status": true } but I can't enable clean URLs. My project runs in a virtual directory set in Apache like this:
The other day I got it working after I enabled the "RewriteBase /drupal" in the .htaccess file of my Drupal installation. The next day when I came into work and booted up my machine it didn't work anymore and I haven't been able to get it up and running since. It runs fine on my Ubuntu box at home...
The machine on which it fails runs Windows XP, Apache 2.2, MySQL 5.0.51a-community-nt, PHP 5.2.5 and Drupal 6.3.
I'm having the same problem too
Hello, i'm having the same difficulties. It happens when i've uploaded the Drupal in a tar.gz files into the server, later i untar it using cpanel file manager. Apparently the .htaccess on the root directory wasn't copied right, after i re-copy the .htaccess, the problem solved!
Same Here
Drupal 5 Clean urls work Drupal 6 Not
When i run this link:
admin/settings/clean-urls/check
i get:
{ "status": true }
Any Idea
Me too
I'm in the same boat...
If I can provide any data to help diagnose this, just let me know.
Thanks,
David
me too - reinstallation helped
Hi,
faced the same problem. However, I added mod_rewrite after drupal installation.
I could see
admin/settings/clean-urls/check
{ "status": true }
but wouldn't be able to select clean urls
Reinstallation of drupal solved the issue.
make sure you have .htaccess
I was having all these problems, and then realized I did not HAVE a .htaccess file. Somehow it didn't get copied over from the archive. So make sure you have a .htaccess file. That sorted me.
Bingo
Bingo, that was my problem - thanks!
Can't Enable Clean URLS in Drupal 6.2
I too have this issue - I have my .htaccess file in the drupal root directory and the clean url check page returns true. But it will not allow me to enable clean urls. I am using Cent OS 5 with Apache 2.2.3, PHP 5.1.6, and I am even using Drupal 6.16 so it is not purely a 6.2 issue.
Maybe "AllowOverride" parameter?
Just got same symptom: edited .htaccess to rewrite / and passed clean url check, but cannot enable clean urls. Turned out AllowOverride parameters in httpd.conf was set to "None" instead of "All".
I had similar configuration (CentOS 5.4 + Apache 2.2.3 + PHP 2.5.10 + Drupal 6.16), all from base + testing repos. Hope this could help.
uncomment # RewriteBase / in your .htaccess
Open .htaccess :
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /
It's work for me...............
Solution for Your problem
RTFM - I would say on the beginning...
http://httpd.apache.org/docs/2.1/howto/htaccess.html
########################################################################
Its not a problem with Drupal. In most cases its a problem with Apache configuration.
Go to Your apache configuration file httpd.conf or apache2.conf or whatever...
Find Your domain configuration ( Virtualhost)
In tab
< Directory /your/www/path >
change Allowoverride None
to
Allowoverride All
< /Directory >
Thats, all...
It is the .htaccess file
Hi,
I ran into the same problem --- .htaccess file was there, but "enable clean-urls" radio button was disabled. My site is installed in a sub-directory, and I finally got it to work by editing the .htaccess file as follows:
uncommented:
RewriteBase /updated:
RewriteRule ^(.*)$ /my_sub_directory/index.php?q=$1 [L,QSA]It was actually http://drupal.org/node/15365, referred to by many of you, that provided me with the solution (the "Location of index.php" section). I had read that a few times but apparently I just had to give it one more read before the light bulb lit up.
Hope this could be of help.