Last active
December 15, 2015 09:29
-
-
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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