Setting up Pretty URL in CMS Made Simple
Previous article Next articleBy default CMS Made Simple™ creates a "technical" URL like www.website.com/index.php?page=contact
It is functional, but it lacks aesthetic value. Pretty, or Search Engine Friendly URL is a feature for improving the appearance of the URL and it also improves search engine indexing!
Tutorial Video
How to use
1. Copy the "htaccess.txt" file from the CMSMS™ /doc directory to the root of your website.
2. Rename the copied file to .htaccess including the dot!
3. Add to the bottom of your config.php the line:
$config['url_rewriting'] = 'mod_rewrite';
?>
4. Check if the head section of your Core::Page template contains the metadata tag:
...
{metadata}
...
</head>
More extended documentation on settings and known issues on the official CMS Made Simple documentation website.
This article is written for Apache web servers. More information on other servers at the CMSMS Documentation website.
Comment Form
ReviewManager
ReviewManager
2 Comments
@Waller
You have to look for the file htaccess.txt in the docs folder, not the .htaccess one!
Check the video above
After installation of cms version 2.27 i added : $config['url_rewriting'] = 'mod_rewrite'; to the config.php which makes the subdirectories hang : in the .htacces is no mod_rewrite...only # #To deny PHPs - also : how can this function ?