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
What is PHP?
Added on Fri, Mar 13, 2015
What is Perl and what can it do?
Added on Fri, Mar 13, 2015
Where is the dictionary directory?
Added on Mon, Mar 16, 2015
Do CGI or Perl scripts have to be in a specific directory?
Added on Mon, Mar 16, 2015
What is the server path?
Added on Mon, Mar 16, 2015