Kryptronic Software Support Forum

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.

#1 08-14-2007 11:31:03

solaris
Member
Registered: 08-07-2007
Posts: 105

SEO, SSL, and CCP don't play together

Well,

I got the SEO working but only for unsecured pages.  If I browse my site on an unsecured connection every link that points to http://whatever shows up with the SEO rewrite; however, any links pointing to https://whatever does not show up as a search engine friendly link. Furthermore, if I am browsing the site using the secured connection (https) every last link is not search engine friendly (even the ones pointing to a 'http' location)

I find this most interesting that when I am browsing an unsecured connection (http) that only the https links are unoptimized.


FYI:
- My secured cookie domain is set up properly and I am definitely  getting cookies delivered over https

If anyone has any suggestion/advice I'd be happy to listen.

Thanks!

Offline

 

#2 08-14-2007 11:39:00

solaris
Member
Registered: 08-07-2007
Posts: 105

Re: SEO, SSL, and CCP don't play together

Oh,

It may be helpful to know....
it's not that mod_rewrite/CCP  doesn't work with SSL its just that the https SEO friendly links are not being created for me.

e.g
I could manually plug the following url into my browser and it will work.
https://mydomain/ccp0-display/termsofuse.html

Offline

 

#3 08-14-2007 12:27:43

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: SEO, SSL, and CCP don't play together

If you're using Apache and a self signed cert I might suspect the signing chain of the cert not making Apache happy (or at least mod_rewrite).  Are you using Apache and, if you are, are you using it on Windows or *nx?

Offline

 

#4 08-14-2007 12:48:50

solaris
Member
Registered: 08-07-2007
Posts: 105

Re: SEO, SSL, and CCP don't play together

Dave,

Excellent thought. That just crossed my mind as well. I am using a self signed certificate which does have a domain name mismatch since I'm only using the machine name. Hence my user name I am running Solaris (UNIX) and Apache2.  I'm going to try and create a new cert really quick with the fully qualified domain name and see if that fixes the problem. I'll let you know.

Thanks!

Offline

 

#5 08-14-2007 16:22:11

solaris
Member
Registered: 08-07-2007
Posts: 105

Re: SEO, SSL, and CCP don't play together

Well Dave,

I'm at a loss of ideas here. I created a new ssl cert without the domain mismatch and that solved nothing.

All I know is that:
- I can use a rewritten URL over https and it will work (As stated in my second post)
- It is not mod_rewrite that creates the new SEO friendly link. mod_rewrite simply does the translation from the requested SEO URL to the actual URL.
       - It is the programmers responsiblity to create the SEO link; therefore, I must have done something to make CCP use the ugly looking link (but only for urls pointing to https when in http mod. Or all urls when comming from https). But what could this be?

- It doesn't seem to be a cookie issue for two reasons.
      1. I cleared my cookies went directly to https:// and got a cookie sent down.
       2. In http:// unsecured mode my URLs are being rewritten(by CCP not mod_rewrite). CCP is refusing to rewrite any links pointing to https or anything link when I am on a secure connection.

I know most of what I  just said was stated in my previous posts. I just figured if I stated walking throught what we know the answer my just pop up.


Thanks!

Offline

 

#6 08-18-2007 12:21:14

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: SEO, SSL, and CCP don't play together

Is the cookie correct for the SSL URLs?  Re-run the installer and check it out.  I bet it is not correct.  Or the cookie domain is not correct (for SSL only).


Nick Hendler

Offline

 

#7 08-20-2007 08:17:38

solaris
Member
Registered: 08-07-2007
Posts: 105

Re: SEO, SSL, and CCP don't play together

Nick,

I am positive the cookie domain is correct for both the SSL and the unsecured URL. Just to ensure this once again. I took the following test procedures:

1. Cleared all my cookies
2. Directly loaded a secure page on my site without first hitting an unsecured page.
3. Checked that a cookie was now on my machine (It was).

I then wanted to ensure that I would not get a cookie if my ssl cookie domain was incorrect. so I.
1. changed the cookie domain to somethingelse.com
2. cleared all my cookies
3. Directly loaded a secured page on my site without first hitting an unsecured page.
4. Checked that a cookie was now on my machine (It wasn't). Thus I had it set up correctly in the first place.

Something else must be happening. I just don't know what!

I really don't understand why cookies are tied into this whole mess. It seems to be a little ugly because of this. Upon a visitors first load of the home page they will have just grabbed their first cookie; thus, all the urls still look like bad. Upon their second page visit they finally get nice looking urls. I havn't  yet figured out what happens when they visit their first https page since I can't get this to work. It seems like it would have been better written to spit out the rewritten URLs strictly based on the SEO option within the admin panel and not based on the presence of a clients cookie.


Anyhow,
Thanks for all the help thus far!

Offline

 

#8 09-11-2008 14:08:53

mcglynnfinn
Member
Registered: 03-24-2008
Posts: 3

Re: SEO, SSL, and CCP don't play together

Hi,

I am having the exact same problem. I have setup that all my pages will be secure https://    (This was changed on Step3 of the installer)

I have configured the cookies on Step4 of the installer correctly and the htaccess is also setup. When using unsecure http:// only, all works fine and all links on each page are HTML.

The html files work if I manually enter the webpage with https  but all the links of the page are then php and not HTML....

This is really driving me mad..... any suggestions.

Thanks,
Stephen

Offline

 

#9 09-11-2008 14:23:51

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: SEO, SSL, and CCP don't play together

The core that CCP is running on top of is intentionally set up to NOT run SEO when using SSL.  You would have to hack the core class KHXC_Display to change that behavior.

The one line in KHXC_Display that needs to be modified is around line 983 and should read:

Code:

if ((!($print_sid)) && (!($print_portrelay)) && (!($ssllink)) && ($seo_status) && ($seo_paramstatus)) {

Removing the test for the ssllink should allow SEO links when using SSL.

Code:

if ((!($print_sid)) && (!($print_portrelay)) && ($seo_status) && ($seo_paramstatus)) {

Last edited by Dave (09-11-2008 14:29:06)

Offline

 

#10 09-12-2008 13:35:16

theblade24
Member
From: Tampa, Florida
Registered: 11-19-2003
Posts: 384
Website

Re: SEO, SSL, and CCP don't play together

Why would you want SEO secure pages?  Those pages should be robot.txt'd out anyway so they AREN'T spidered. There is no need ever for them to be.

What is the reasoning behind having EVERY page run in https mode?


CCP 5.1
CCP 5.1
CCP 5.1

Offline

 

#11 09-12-2008 13:39:05

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: SEO, SSL, and CCP don't play together

I've wondered that very thing myself but I'm seeing more and more sites that are running completely as SSL.  Why baffles me especially since it consumes more CPU to deliver.

Offline

 

#12 09-12-2008 13:44:14

theblade24
Member
From: Tampa, Florida
Registered: 11-19-2003
Posts: 384
Website

Re: SEO, SSL, and CCP don't play together

The only reason I could possibly think of would be the non-ability to switch image links back and forth. But CCP does it so it doesn't make sense.


CCP 5.1
CCP 5.1
CCP 5.1

Offline

 

#13 09-12-2008 13:47:53

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: SEO, SSL, and CCP don't play together

Not sure what you mean by "switch image links back and forth".

Offline

 

#14 09-12-2008 14:04:16

theblade24
Member
From: Tampa, Florida
Registered: 11-19-2003
Posts: 384
Website

Re: SEO, SSL, and CCP don't play together

When you make an image link isn't a variable used for the url so it switches from http to https and back automatically?  or is that only in 5.1?


CCP 5.1
CCP 5.1
CCP 5.1

Offline

 

#15 09-12-2008 14:32:31

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: SEO, SSL, and CCP don't play together

That is correct but it's a function of CCP so there should not be a case where the URL can not be built dynamically.

Offline

 

Board footer