Home » Categories » Multiple Categories

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.

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
Related Articles
Why is my complied CGI program not running?
Added on Mon, Mar 16, 2015
Is imagick available on your servers?
Added on Mon, Mar 16, 2015
How to handle ’Out of memory’ PHP errors.
Added on Tue, Jun 25, 2019
Can I use command line arguments with a PHP scheduled task?
Added on Mon, Mar 16, 2015
Log4j Flaw - Frequently Asked Questions
Added on Wed, Dec 15, 2021