FAQ Item

« Return to FAQ database

Setup pretty links / mod_rewrite

To get links that look like this: /customer.customer_list/
instead of this: /?m=customer&p=customer_list
you need to setup REWRITE links

This requires Apache with mod_rewrite (most standard linux hosting accounts support this, windows hosting accounts do not support this).

Open the file includes/config.php and look for this line of code:

if(!defined('_REWRITE_LINKS'))define("_REWRITE_LINKS",false);

change it to this line of code (ie: false to true):

if(!defined('_REWRITE_LINKS'))define("_REWRITE_LINKS",true);

---

If you have WordPress installed on your main website (eg: yourwebsite.com) and UCM installed in a sub directory (eg: yourwebsite.com/ucm/) then sometimes WordPress will cause 404 errors in your UCM installation. To fix this please open up the UCM .htaccess file (in the main 'ucm' folder). The contents should look like this:

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

Change it to this (but replace /ucm/ with your own folder name):

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