Lounge Network - Knowledge Base

  View Printer Friendly Version Search
KNOWLEDGE BASE HOME » 14. INFORMATION: CORPORATE & BUSINESS HOSTING Viewing Answer
[LINUX] Clean / search engine safe URLs.
The Linux / PHP* servers support mod_rewrite which will allow you to configure your website with Clean or Search engine safe URLs.


Many CMSs like Drupal, Oscommerce allow clean urls like http://www.mydomain.co.nz/my_content which actually points to http://www.mydomain.co.nz/index.php?id=my_content.

Many of the CMSs have a file called .htaccess which has mod_rewrite rules which will allow you to do the above.

On our Linux servers, the following configuration will work in a .htaccess file:

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


Note: Please note the forward slash in the last line before the index.php. This is required on our servers.

KNOWLEDGE BASE HOME » 14. INFORMATION: CORPORATE & BUSINESS HOSTING Viewing Answer




Knowledgebase Manager

© Copyright Lounge Network 2001-2017