Enabling Search Engine Friendly URLs in Concrete5
You can display search engine friendly URLs, also known as pretty URLs, in Concrete5. To do so, you must make changes to your hosting and Concrete5 accounts.
To Enable Search Engine Friendly URLs in Concrete5
- Disable FastCGI in your hosting account. For more information, see Disabling FastCGI in your Hosting Account.
- From the Tools section, click FTP File Manager.
- Open the
.htaccess
file for Concrete5, and then enter the following code:
AddHandler x-httpd-php5-3 .php
# -- concrete5 urls start --
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
# -- concrete5 urls end -- - Navigate to the config directory, and then open the
site.php
file, and then enter the following code:define('URL_REWRITING_ALL', true);
define('SERVER_PATH_VARIABLE', 'REDIRECT_SCRIPT_URL'); - Log in to Concrete5. If you need help, see Concrete5 Support.
- In the System & Settings section, click Enable Pretty URLs. Your site displays as http://coolexample.com/nameofpage/.