Skip to content

Instantly share code, notes, and snippets.

@sadanandkenganal
Last active September 7, 2017 07:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sadanandkenganal/9a96232078667652aada to your computer and use it in GitHub Desktop.
Save sadanandkenganal/9a96232078667652aada to your computer and use it in GitHub Desktop.
Enable Clean URL's drupal 7

It's very simple.

In your project Directory, you have .htaccess file. open it and make the following changes. Its a hidden file.

  1. 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:

Line 106 - RewriteBase /yourprojectname(project folder)

  1. If your site is running in a VirtualDocumentRoot at http://example.com/, uncomment the following line and modify:

    Line 110 - RewriteBase /yourprojectname(project folder)

@dapseen
Copy link

dapseen commented Sep 7, 2017

You rock man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment