Broken links when SSL activated
Permalink
Hi
I have a strange issue that has arisen on a site I maintain. Recently SSL has been activated on the site, since then some links have broken, but only pages that aren't within a sub directory, ie single pages that have been added directly under the home.
The only way to access them is by adding index.php before the url, ie
https://www.cattonhall.co.uk/index.php/enquire-about-catton-hall...
My hosting company says it is to do with the way Concrete 5 works that I am getting this issue, but I don't understand as it worked fine before the SSL was implemented
Has anyone else experienced this?
I have a strange issue that has arisen on a site I maintain. Recently SSL has been activated on the site, since then some links have broken, but only pages that aren't within a sub directory, ie single pages that have been added directly under the home.
The only way to access them is by adding index.php before the url, ie
https://www.cattonhall.co.uk/index.php/enquire-about-catton-hall...
My hosting company says it is to do with the way Concrete 5 works that I am getting this issue, but I don't understand as it worked fine before the SSL was implemented
Has anyone else experienced this?
Kudos to you Axel!
Sometimes the simplest things still baffle me
Sometimes the simplest things still baffle me
:-)
If you remove index.php by .htaccess then make sure that .htaccess is activated on webserver httpS configuration too.
Thanks for your reply, I appreciate it
The following worked for me together with setting a canonical URL to https ://your_site:
# -- concrete5 urls start -- <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteCond %{REQUEST_FILENAME}/index.php !-f RewriteRule . index.php [L] </IfModule> # -- concrete5 urls end --
Thanks for your reply and suggestion. Much appreciated
I didn't saw any problems with activativating SSL on my pages so far.
On the given domain I see that your pages are written with an ending slash.
If you have a page like on top right "Buy Gift Voucher" - it points tohttps://www.cattonhall.co.uk/buy-gift-vouchers... - it has no ending slash and jumps tohttps://cattonhall.co.ukindex.php/....
I guess, there could be a problem with the rewrite rules (or add the "/" in the link).
regards,
Axel