Web Hosting Forum | Lunarpages

Web Hosting Guidance and Advice => Web Hosting Help and Troubleshooting => Topic started by: gmo2007 on December 13, 2011, 05:37:00 PM



Title: Drupal 7: Clean URLs cannot be enabled. How do I get rid of ?q= in the URLs?
Post by: gmo2007 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!


Title: Re: Drupal 7: Clean URLs cannot be enabled. How do I get rid of ?q= in the URLs?
Post by: Bragmas 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 /


Title: Re: Drupal 7: Clean URLs cannot be enabled. How do I get rid of ?q= in the URLs?
Post by: nayan007 on March 13, 2012, 10:44:01 AM
Hi,
Thank you,my issue is resolved

__________________
“God never made his work for man to mend” (https://Lunarpages.com/cat/6-5/vmware-cool.gif)