Here we will try to explain how you can enable the clean URLs in Drupal in three simple steps. All SiteGround servers fully support the Apache mod_rewrite module and all Drupal users hosted on our servers will be able to use the clean URLs option.

There are only 3 steps you need to follow to enable the Search Engine Friendly URLs. Here we assume that you already have Drupal installation for your account into the /drupal subfolder (www.yourdomainname.com/drupal) and you want to activate the clean URLs.

 

How to Activate Search Engine Friendly URLs in Drupal?

Step 1: Edit the .htaccess file in your Drupal directory.

Delete the entire content of the .htaccess file and insert the following lines into it:

RewriteEngine on
RewriteBase /drupal
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

You should replace the path in the following line:

RewriteBase /drupal

with the relative path to the directory where Drupal is installed. For example if your Drupal is installed in your web site root folder and you access it via www.yourdomainname.com, the line should look like this:

RewriteBase /

ImportantPlease note that the rewrite rules are set by default in the Drupal 6.x installation package. All you have to do is verify the RewriteBase setting.

Step 2: The next step is to log in the administrative back end of your Drupal site and enable the "path" module. This module is essential for the clean URLs in Drupal. Once you are logged click on the "Administer" link on the left menu and then on the "Modules" link:

Drupal - Administer - Modules

Scroll down the page, find the Path module, tick the little check box on the left of the module and save the settings:

Drupal - path module

Step 3: The next and final step is to test the clean URLs and confirm the changes. In the administrative back end point your browser to the Site configuration link from the left menu and click on the Clean URLs link.

clean urls

The page will be loaded, you will be able to select the Enable radio button and save the changes.

Now load the front end of your site and point the mouse over a link. In the status bar and in the address bar you will notice that all links will be in clean (human readable) format.

Login to post comments

advertise with us

Boost your traffic and expand your pool of potential customers

8000 active members

Ready to join Now?

CMS Portal - The free marketplace for submitting Joomla, Drupal, Wordpress, Magento, phpBB, Prestashop, vBulletin, Opencart Templates and more.

FOLLOW US

Email Newsletters

Make sure you don't miss interesting happenings by joining our newsletter program.
konya escort eskisehir escort canakkale escort samsun escort balikesir escort aydin escort hatay escort kahramanmaras escort giresun escort tokat escort
Joomla Templates Free Joomla Templates Virtuemart Templates K2 Templates JoomShopping Templates HikaShop Templates SobiPro Templates OpenCart Themes
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes
bettilt
tempobet