Jcorp CMS

Many sites using Jcorp CMS use "clean urls"

What are "clean urls"?

Clean urls look like /path/to/installation/PageName instead of /path/to/installation/page.php?p=PageName

How to get them?

In Jcorp CMS and Apache HTTPD, it is as simple as changing two files.


In the .htaccess file (you will have to make it) on the root of your site add these lines:
RewriteEngine on RewriteRule ^([^/.]+)/?$ page.php?p=$1 [L]

In the index.php file on the root of your site (it is already there) just change this line:
<?php header('Location: page.php?p=home'); ?>
to this:
<?php header('Location: home'); ?>