Web Hosting Forum | Lunarpages

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
September 02, 2014, 10:56:02 AM

Pages: [1]   Go Down
Author Topic: Drupal 7: Clean URLs cannot be enabled. How do I get rid of ?q= in the URLs?  (Read 5676 times)
Offline Offline

Posts: 1

« on: December 13, 2011, 05:37:00 PM »

I'm trying to use clean URLs in my Drupal 7 installation. However when I do the Clean URLs test (/?q=admin/config/search/clean-urls), it says "The clean URL test failed."

It goes on to tell me:

"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."

Does anybody have any experience with this? Or a solution? I searched for a module or code to fix it, but came up empty handed.

Thanks in advance!
Offline Offline

Posts: 1

« Reply #1 on: March 13, 2012, 09:26:10 AM »

You may try to modify the .htaccess file

  # 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 /
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  #  RewriteBase /
Spacescooter Operator
Offline Offline

Posts: 37

« Reply #2 on: March 13, 2012, 10:44:01 AM »

Thank you,my issue is resolved

“God never made his work for man to mend”
Pages: [1]   Go Up
Jump to: