Why can’t I create ’pretty’ URLs in Concrete5?


At times, when you install the concrete5 content management system, the software will have difficulty creating ‘pretty’ URLs, such as turning your-domain.com/index.php/about-us into your-domain.com/about-us/.

This is related to the configuration of PHP on our servers, but can be easily circumvented by adding some code to a configuration file.

To fix this problem:

  1. Download your site.php file in your /config/ directory
  2. Add this line to your site.php file:

define('SERVER_PATH_VARIABLE', 'REDIRECT_URL');

  1. Download your .htaccess file
  2. Add these lines to your .htaccess file:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]

  1. Re-upload both the site.php and .htaccess files

Please raise a Support Ticket with our Customer Services team if you are still having difficulty.



Article ID: 429
Created On: Mon, Mar 16, 2015 at 3:47 PM
Last Updated On: Thu, Apr 23, 2015 at 12:15 PM

Online URL: https://www.heartinternet.uk/support/article/why-can-t-i-create-pretty-urls-in-concrete5.html