when I open the clean URL's page, I am unable to set it . it shows this commentYour system configuration does not currently support this feature . The handbook page on Clean URLs has additional troubleshooting information.
Is is necessary to set the clean URL's?????

Comments

cog.rusty’s picture

No, it is not necessary. You will have URLs like http://example.com/?q=node/35 instead of http://example.com/node/35. That's all.

jhun vert’s picture

No, it is not necessary

Some modules wont work if clean url is not enabled.

userofdrupal’s picture

Is this on a machine you control (like your personal computer or own webserver machine) or is this your webhost?

Also, do you know what webserver software you are using? E.g. apache or IIS?

abhilasha bhardwaj’s picture

i am using apache server with PHP and Mysql. drupal ver 6.2
this is a localhost machine not a webserver

userofdrupal’s picture

I would highly recommend clean URLs. Also just to make sure were not overlooking something obvious: did you run the clean url test first (it's a small link embedded in the description about clean urls on the clean url page)? Make sure you run that first, then you can enable clean urls (if it passes)

If you ran the test and it did not work, did you enable mod_rewrite in apache?

See this how-to:
http://drupal.org/node/15365

abhilasha bhardwaj’s picture

no there is no Clean URLs link

this is my Clean URLs page when i open clean URL's page

Clean URLs:
Disabled
Enabled
This option makes Drupal emit "clean" URLs (i.e. without ?q= in the URL).

Your system configuration does not currently support this feature. The handbook page on Clean URLs has additional troubleshooting information.

userofdrupal’s picture

Is mod_rewrite enabled in apache?

abhilasha bhardwaj’s picture

no there is no mod_rewrite in httpd.conf file of apache

jabroni’s picture

After hours of playing around, calling Godaddy, and other crap, I finally took care of this issue with Clean URLs.

** Godaddy DOES HAVE mod_rewrite ENABLE **

As for fixing the issue. Do this quick test:

Try to view a page in the admin section by removing the ?q= from the domain.
Example:
http://example.com/?q=admin/settings/clean-urls/

Change it to:
http://example.com/admin/settings/clean-urls/

If you took care of the issue by modifiying the .htaccess, then it should go directly to the Clean-url page, run the test, and the option should now be highlighted to Enable Clean-URLs.

Hope that helps.

jackhutton’s picture

I was on tech support w. godaddy..and it was going nowhere.
I plugged in your URL above http://example.com/admin/settings/clean-urls/ and viola, page appeared indicating the server was setup to support clean URLs and I enable it, thus avoiding so much torment.
Thank jabroni

_____________________________________________________________________________________________________________________________________________________________________________
''The secret though is just keep walking through life without analyzing it too much or clinging to it too much. Just walk on.'' - Marilyn Silverstone, Magnum Photographer & Buddhist Nun, b. March 9, 1929, October 1999.

''The secret though is just keep walking through life without analyzing it too much or clinging to it too much. Just walk on.'' - Marilyn Silverstone, Magnum Photographer & Buddhist Nun, b. March 9, 1929, October 1999.

nomdeplume’s picture

What do you mean take care of the issue by modifying the .htaccess file? You skipped that part.
Does not work for me. I get a 505 error.

jpatiaga’s picture

That was what solved my problem. Thanks a lot!!

I think Drupal should change to avoid having to rewrite manually the url; it should just run the test appropiately.

lca7’s picture

It is strange that my two sites in the same hosting,one is ok for Clean URLs(this is ok with Clean URLs),and the other site(firefox for mac) says "Your system configuration does not currently support this feature. The handbook page on Clean URLs has additional troubleshooting information."
And I do as you said,it appears "Internal Server Error".
I don't know why?

hokuspokus’s picture

Great fix! Stripping off the ?q= after I altered .htaccess and uncommented Rewrite / base made the clean urls configuration page work properly. Totally counter-intuitive, I would have never thought of trying this but thank Science you figured it out. This trick should be in every GoDaddy Drupal setup tutorial.

nisarg.patel’s picture

Hello ,
Its not working for me giving error like----

Use URLs like example.com/user instead of example.com/?q=user.

Clean URLs cannot be enabled. If you are directed to this page or to a Page not found (404) error after testing for clean URLs, see the online handbook.

what should be the problem?

donkasok’s picture

Please do the below things to enable clean URL. Once you done , you need to restart the apache server and try the clean URL section in drupal. Some times you need to restart server.

Please open httpd.conf file from apache.

You can find it in .....//httpd/conf/httpd.conf

or ............//apache2/apache2.conf

remove comment marks from the below line

LoadModule rewrite_module modules/mod_rewrite.so

.............................................................................

Terrance33’s picture

That did the trick. Is that a bug? The clean url checkboxes were disabled until I manually typed a clean url in the address bar. Strange.

donkasok’s picture

Clean url ckeck boxes are disabled due to your configration set up.

did u enable clen url in drupal admin area

donkasok’s picture

//httpd/conf/httpd.conf

or ............//apache2/apache2.conf

remove comment marks from the below line

LoadModule rewrite_module modules/mod_rewrite.so

IZasPIE’s picture

When I run Clean URL link at the bottom, It redirects me to home page. Please help!

cog.rusty’s picture

Obviously this means that for some reason clean URLs don't work. With only this information it is hard to say why. To summarize http://drupal.org/node/15365:

- Drupal's main .htaccess file contains some URL rewrites near the end, which are absolutely necessary. Do you have that file?
- For the rewrites to work, mod_rewrite must be enabled in Apache's configuration (assuming your web server is Apache).
- For the rewrites to work, Apache must read the .htaccess file. If Apache's httpd.conf contains an AllowOverride None line for your web root directory, then .htaccess will be ignored.
- In some server configurations where the directory structure is different from the URL paths, you may need to set RewriteBase / (or something appropriate specifying a base URL path) in .htaccess.

IZasPIE’s picture

My .htaccess file is empty. Nothing in there.. Please help..

cog.rusty’s picture

Get a new .htaccess file from a drupal tar.gz package, same version as yours, and upload it to drupal's directory.

IZasPIE’s picture

Hey thanks a lot! Works fine now! Thanks!

kejsu’s picture

I added to .htacess this:


RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

now it`s working perfectly;)

Adamantus’s picture

The above fixed worked for me after persevering with 10 other versions for ages, we Web designers were not built for this level of nerdyness. I am using Eukhost with a shared linux package for this to work:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

bosspetta’s picture

Really thanks.

Working perfectly! ;-)

amrit_b’s picture

i installed xampp with Apache 2.2.11, PHP 5.30, MySQL for my Drupal 6.14. everything worked properly. but when i started to use the contributor modules, drupal started misbehaving (coz it was PHP 5.30 !! ). i shifted to wamp server and PHP 5.2.11 and the modules responded correctly. but, drupal misbehaved (or may be Apache :>) right in the begining!
i modified the apache httpd.conf file at "C:\wamp\bin\apache\Apache2.2.11\conf" as mentioned above and everything again came on track!!
thanks!!

SilverX’s picture

My thing comes up as i can't even click on the enable link.

I also have no clue what apache is. i tried finding my access file or w.e but can't find one. So i assume i am not running apache.

Need some help please any would be appreciated.

Thank you

SilverX’s picture

Ok guys here is a way to fix this really stupid problem.

I am a complete nuuub with this and I could figure it out lol. So can YOU

Ok when you upload and install drupal to your server it doesn't add the access file to it beacuse your computer hides it.

-Make sure your folder options are set to View hidden files.
-Extract a zipped download of Drupal on your computer and you should find that file in there.
-Next upload the file to your drupal folder on your server and VIOLA it works.

If this was like a DUHHHH please bare with me guys I'm like a super NOOB with this stuff.

rasheedml’s picture

it worked for me twice
after spend a lot of my time finally i do your recommend and it worked for me too in two domain and two web site.

thank you indeed

clancyhood’s picture

I installed via Ubuntu's aptitude on a vps and found a similar issue.

Mod Rewrite enabled OK

I attempted to visit admin/settings/clean-urls and found a 404 page - but the 404 error read:

The file "/usr/share/drupal6/index.php" could not be found.

Since drupal6 was at the alias /drupal6/ it was necessary to set the rewrite base in .htaccess

  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
RewriteBase /drupal6/
nkhanchandani’s picture

i also got same problem i.e. disabled clean urls,
so i found that .htaccess file was empty, so i copied .htaccess file to the server and it works fine.

wooody’s picture

Hello,
If you work in Sub-folder Like www.mydomain.com/site

you need to change the .htaccess

RewriteBase /site

Regards.
Mohammad

nosikus’s picture

i moved my site from one server to another and could not enable clean urls. this is how i fixed the problem

opened httpd.conf file from apache.
You can find it in .....//httpd/conf/httpd.conf
or ............//apache2/apache2.conf
edit the line AllowOveride None to AllowOveride All in the web directory root of the httpd.conf file.
And save. ensure you create a backup of the file before editing.

also ensure the following settings in .htacess are enabled:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

restart the Apache server.

i was then able to enable clean urls on my site.

ataneja’s picture

"Great fix! Stripping off the ?q= after I altered .htaccess and uncommented Rewrite / base made the clean urls configuration page work properly."

This works for me....

Jyoti mattu’s picture

Yes this is necessary to set clean URL because it gives absolutely right information about that particular page. From Seo point google recommend only clean urls.

voteboo’s picture

My drupal installation was in a subdomain, and on top of that I had the installation in a sub-sub-directory (public_html /subdirectory/ drupal_installation_directory). I figured this fix, and I hope you guys can benefit from it.

Clean URL NOT working fix:

1. Open .htaccess file from drupal installation directory(folder)

2. Edit .htaccess file with your favorite editor (notepad, notepad++, etc)

3. Uncomment line 103 or subsequent line number(line number based on a fully functional .htaccess file):

Not modified:

#RewriteBase /drupal

With mod:

RewriteBase /subdirectory_name/drupal_directory_installation_name

Note**: spaces are important.

Example: My site is at subdomain.domain.com/droops6/drooploop/?q=admin/settings/clean-urls

My mod was as follows:

RewriteBase /droops6/drooploop