Free multilingual SEO oriented CMS

en fr

The URL rewriting

In uCMS, the URL rewriting is done by default with a .htaccess file which redefines the 404 error page to a PHP page. This PHP page manages the rewriting.

If you do not have the right to define your own 404 error page because of your your hoster, you can uncomment the other lines of the .htaccess file to manage the rewriting through this file only.

uCMS allows a very effective URL rewriting. In fact, you can edit rewritten URLs at any time without ever creating "duplicate content" on your site. uCMS always checks if the URL requested by the client is the last URL that you defined. If this is not the case, it redirects the user to the proper URL by sending a "301 Moved Permanently" type header, which tells search engines that the URL has changed. So they replace the URLs of pages that are no longer valid by the news in their databases. This feature allows you to always put up to date keywords that contain URLs without altering your SEO.

Attention! Like the URL rewriting updating, uCMS will manage the same way simply switching on a URL rewriting system or not (Enabled / Disabled in "Settings" page). However, it is obvious that if your site is referenced with rewritten URLs and that for some reason (changing of hoster which does not give you enough rights), you can no more manage the rewritten URLs, pages will no more be accessible via their old URLs (rewritten URLs). So, URLs redirection that allows uCMS, from a rewritten URL to a not rewritten URL, can be done only if the rewritten URL answers and could theoretically work!

Attention to a second thing! To make working the URL rewriting, the rewriting path of the .htaccess file should be the same as the installation folder of uCMS! So, when you move the site to another folder, don't forget to update this line in the .htaccess file and in the "Settings" page!