You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Hi All
I recently changed over my site to https as recommended using the instructions posted by Nick in a previous post. This causes a few issues.
1. breaks many links on the following page on the site
https://www.concept-zen.com/Account
2. deleting items added to the shopping basket does not remove them until you do a page refresh. (I thought the Ajax page refresh would have done this but it does not)
For now this is what I have found but obviously this stops any transactions being placed. Secure urls are being shown correctly and there is no unsecure content on my home page.
My htaccess file has the following rules etc
# Turn Rewite Engine On
Options +FollowSymLinks
RewriteEngine on
# Version 8 Rewrite Rules
#RewriteBase /
#RewriteCond %{HTTP_HOST} !^www.concept-zen.com$
#RewriteRule ^(.*)$ http://www.concept-zen.com/$1 [R=301,L]
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^prod--(.*)\.html /Item/$1 [R=301,L]
RewriteRule ^cat--(.*)\.html /Category/$1 [R=301,L]
RewriteRule ^index.php - [L,PT]
RewriteRule ^$ index.php?COREseourl=/ [L,PT]
RewriteRule ^/$ index.php?COREseourl=/ [L,PT]
RewriteRule ^sitemap\.xml utilities/sitemap.xml [L,PT]
RewriteRule ^rss\.xml utilities/rss.xml [L,PT]
RewriteCond %{REQUEST_URI} ^/
RewriteCond %{REQUEST_URI} !\.(xml|css|js|gif|jpg|jpeg|png|pdf)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?COREseourl=/$1 [L,PT]
AddType x-httpd-php56 .php
Any help will be appreciated so I can move on from this and get onto the task of updating the products on my website which is the real urgent work which requires to be done.
If you need any other information let me know.
regards
Dukes
Offline
Hi sorry nick I should have updated my post. I managed to fix it last night. I'll post my solution later today. Pretty much involved removing the PT and L directives from the penultimate line in my htaccess file rules. I'll explain my reasoning for this. If my logic is flawed then I'll welcome any feedback. I've tested the change as much as possible. By logging into secure areas, adding, updating and deleting from the shopping cart. Clicking on URL links everywhere also to test they do lead to the correct page and don't just hang.
Offline
I think adding the [L,PT] back onto the end of that line and moving:
AddType x-httpd-php56 .php
To the top would achieve the same thing. Not sure without testing, though. L means last rule, PT means to translate the path (done for most rewrites).
Offline