Pretty URLS

Permalink
Hi all,

Just made my first Concrete 5 site live but after turning on Pretty URLs to remove the index.php, only the homepage works, the rest of the navigation gives a 404 page not found, I've had a look at other forum posts for help but they seem to reference files that must have moved with the latest version of concrete5, can anyone shed any light on this please?

This is what the Pretty URL is currently putting in the htaccess file :

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>

Thanks in advance.

JamesLG
 
jordif replied on at Permalink Reply
jordif
Hi,

some things you can check:

-> is mod_rewrite enabled in your server? (you can ask your hosting provider)

-> Are .htaccess overrides enabled in your server? (you can ask your hosting provider)

-> is the .htaccess file in the root folder and does it contain those rewrite rules? Sometimes concrete5 is not able to access the file and you need to edit it manually.


Regards,

Jordi
JamesLG replied on at Permalink Reply
JamesLG
Hi Jordi,
Thank you for your quick reply!

I hadn't thought to check with the hosting company, its a old site I've remade using concrete5, it looks like the hosting needs upgrading from windows to linux for it to support mod_rewrite, i've started the upgrade now, hopefully this will fix the issue, i'll let you know.

Thanks again!