Hi,

I am using drupal7. i want to enable the clean url option. But the option is not showing there and below message is displayed

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.

And there is a Run the clean URL test is there. but clicking on that displays following failed message

The clean URL test failed.

So please let me know whether any module is needed for this or how to enable this.

Thanks,

Comments

jayboodhun’s picture

Please check if you have uploaded .htaccess file to your Drupal site root.

If .htaccess file is there then its most likely that your Aapche Server does not have mod_rewrite enabled. You will need to enable this apache module to get clean urls to work.

Hope that helps

dillipsingh’s picture

Hi,

I searched in the root directory of my site. But .htaccess file is not present in root directory. Actually this happens in linux machine

Is there any other name for this.

visabhishek’s picture

Hi
jayboodhun already explained it.

no matter you are using linux or windows. Check your hidden files on root. if '.htaccess' file is prasent then enable mod_rewrite your Aapche Server.

http://www.drupal-solutions.com/enable-modrewrite-ubuntu-server

Hope that helps !!!

jayboodhun’s picture

Hi,

There is no other name for it. If you can't see it, then you need to enable visibility of hidden files on the folder.
Navigate to your Drupal root folder and click View -> Show hidden files

If its not there, download a new copy of Drupal and grab the file from there

dillipsingh’s picture

Thanks Dear.

Actually it is missed from the root folder during copy.Now its working fine