Pages

Friday, October 11, 2013

Enabling clean url via .htaccess in drupal 7

Sometimes due to server settings the clean url test may fail. To fix this make sure to add the below lines in .htacess file in the drupal root folder.


# Pass all requests not referring directly to files in the filesystem to
# index.php. Clean URLs are handled in drupal_environment_initialize().
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ /client/delacon/devel/index.php [L]

No comments: