• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple, the Netherlands

Pretty Urls

We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.

However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.


This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net) Please confirm that you are not a script by entering the letters from the image

The URL's CMSMS will create "out-of-the-box" appear similar to www.website.com/index.php?page=contact
It is functional, but some people find they lack aesthetic value. "Pretty URL's" (also known as Search Engine Friendly or SEF URLS) are an option for improving the appearance of the url, and some SEO specialists find it may improve search engine indexing (your mileage may vary).

Open anchor to this point in the page For the Apache Webserver

Step 1

Copy the file "htaccess.txt" from the doc folder to the root of your website.
Rename the file to ".htaccess" (Note the dot in front of htaccess).

The htaccess.txt file distributed with CMSMS contains other optimizations that are often useful for production websites. It may be useful to read this file and understand its contents.

Step 2

Add to the bottom of your website's config.php:

  1. $config['url_rewriting'] = 'mod_rewrite';

And optionally a page extention, for example:

  1. $config['page_extension'] = '.html';

Some people prefer using a "/" as a page extension. In this case you will need to enable some of the optional rewrite rules that are commented out by default in the distributed htaccess.txt file.

Step 3

The head section of your HTML template should contain the tag:

  1. {metadata}

Step 4

Clear the site cache. Go to "Site Admin" >> "System Maintenance" in the CMSMS admin console. And click the "Clear" button on the "Cache and content" tab.

We recommend that the CMSMS cache be cleared every time the config.php is modified.

Your url will look like www.website.com/contact or www.website.com/contact.html


Open anchor to this point in the page Windows and other webservers

Step 1

Add to the bottom of your websites config.php:

  1. $config['url_rewriting'] = 'internal';

Step 2

The head section of your HTML template should contain the tag:

  1. {metadata}

Again, we recommend that the CMSMS cache be cleared.

Your url will look like www.website.com/index.php/contact