Follow these steps to get rid of the index.php from your URLs.

You have 2 approaches, one is to enable pretty URLs inside Concrete5 and the 2nd method is to insert a new copy .htaccess file into your Concrete5 directory manually using File Manager.

Section 1: Enable Clean URLs e.g. Pretty URLs
Login to your Concrete5 dashboard and click on the Dashboard located at the top right corner before clicking on System & Settings.



Locate the SEO & Statistics section and click on URLs and Redirection.



3.Check Remove index.php from URLs and hit on Save; you should see the following screen:



By now Concrete5 should have created a file called .htaccess in the root of your website ( public_html/.htaccess ). If you install Concrete5 in a subdirectory (just like us), then the .htaccess shall be located in public_html/mydomain.com/concrete5/.

This is the file where the rewrite rules are stored that remove index.php from the URLs.

Section 2: Edit .htaccess File & Upload Via File Manager
If you have completed Section 1 above, you may choose to skip this section unless you are unable to get the updated .htaccess file as seen in Section 1.

In the previous Section 1 tutorial, do you remember the following section?



If yes, you need to copy the entire .htaccess code as highlighted and then insert them into a blank Notepad before saving the file as .htaccess.

NOTE: Notice the RewriteBase /concrete5/ that appear in our example. If you install Concrete5 in your public_html folder, then /concrete5/ should not appear. It should be replaced with RewriteBase /

What's Next?

Now, you just need to locate where your latest .htaccess file is placed in your computer. Once you have identified its location, you may follow this tutorial on how to upload file into your hosting account via File Manager.
Was this article helpful?
Cancel
Thank you!