Activating SEO URLs

Home » Drupal » Activating SEO URLs
Drupal No Comments

1. Edit the .htaccess file in your Drupal Directory. You can either do this from the Control Panel or by downloading with an FTP Program.

2. To edit from the control panel, select the File Manager icon on the Website tab.

3. Check the box next to the .htaccess file and select Edit.

3a. If you do not have an .htaccess file, you can create one on the same page at the bottom. Type in .htaccess as the file name and click Create.

4. In the text editor on the following page, erase anything that may already be in the file and replace with:

RewriteEngine on

RewriteBase /drupal

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

You’ll need to replace the line: RewriteBase /drupal with your Drupal installation path. For example, if it is installed directly to your public_html directory, it would be: RewriteBase /. Click Save once finished.

5. Next, we’ll need to go to the Drupal admin section and enable the Path module. This module is required to make clean URLs work in Drupal. The path is Administer -> Site Building -> Modules.

6. Check the box next to the Path module and click Save configuration at the bottom.

7. Now, we’ll need to test the clean URLs and confirm the changes. From the admin section, go to Administer -> Site Configuration -> Clean URLs

8. Select the radio button for Enabled and click Save Configuration.

If you load the front end of your site now and mouse over a link, you will notice the URL in the status bar will be in a clean, readable format.