Skip to content

Instantly share code, notes, and snippets.

@mojaray2k
Last active December 15, 2015 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mojaray2k/5239194 to your computer and use it in GitHub Desktop.
Save mojaray2k/5239194 to your computer and use it in GitHub Desktop.
These are the lines of code you need to enable clean url's in Drupal
#This enables the urls to be cleaned
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
/*add the following lines of code at the bottom of the settingps.php to activate clean urls*/
$conf = array(
'clean_url' => 1
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment