Clean URLs On Drupal and NearlyFreeSpeech

  • Posted on: 20 July 2015
  • By: davis

Finally got this working. I couldn't enable clean URLs on NearlyFreeSpeech's hosting. If you're like me and can't go anywhere in your Drupal installation but your homepage, read on.

Here's what you need to do:

In your Drupal site root, you're going to need to download and edit the .htaccess file. Open it with Notepad++

Comment out the Order Directive using the "#" symbol

# Protect files and directories from prying eyes.
# <FilesMatch "sample/file/etc/etc">
#   Order allow,deny
# </FilesMatch>

Save and upload your .htaccess file.

Next, visit http://www.example.com/?q=admin/config/search/clean-urls to enable/disable clean URLs.