Zen Follower
- Join Date:
- Aug 2004
- Location:
- Newport, Wales
- Posts:
- 262
- Plugin Contributions:
- 0
HTTPS on entire site - getting some redirect issues
Hi
Recently I decided to take the plunge and go completely HTTPS on my new site mandangle.co.uk however there are a few issue relating to it that are causing me a few problems which hopefully someone can help with.
Basically I have set both config files to HTTPS with enable SSL to true which does the job if you click on links as if you were a customer but Google then indexed the site and I discovered there were a few issues.
The first was that if you arrived at the site using a http link the site automatically sends you to HTTPSs on the following click but then adds a session ID to the end of the url which then also occurs on all subsequent urls.
The second is that if I add a redirect to the htaccess file like this
## Redirect non www to www and also redirect HTTP to HTTPS
RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www.
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
I find I get an error because some pages redirect to the homepage while other work fine which has me seriously stumped.
For example is you launch this page https://www.mandangle.co.uk/man-candles then remove the s in HTTPS it takes you to the home page whereas other pages work just fine and redirect to the same HTTPS page . (This issue was made apparent as a result of a site audit )
Google also only shows around 50 links when there are over 100 so I wanted to make sure the above mentions were not a factor.
So if anyone has any ideas of what I may be doing wrong or any pointers it would be appreciated.
Cheers
Brinley