Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-02 17:57:48

ilpalmo
Member
From: Stockholm, Sweden
Registered: 2007-07-02
Posts: 14
Website

URL problem after latest update?

Just updated to the new txp 4.0.5.
After the update txp changed all my internal links (the ones automated by txp) to https instead of http.
I’ve looked through all the settings but can’t find anywhere to change this.
Is this something changed by txp or is this an issue with my webhost?
Do I have to tweak any files or what can I do to override this?

please help…

Offline

#2 2007-07-02 21:30:07

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: URL problem after latest update?

It should only do that, when you access it via https. Apparently the detection is not working for you.

Yes you can override it, though. Simply add a line to your config.php that says:

define( 'PROTOCOL', 'http://');

For us to find out why it’s the wrong result for you, can you check what result you get when you create and access a test.php file with:
<?php var_dump($_SERVER['HTTPS']);die(); ?>

Offline

#3 2007-07-03 06:42:33

ilpalmo
Member
From: Stockholm, Sweden
Registered: 2007-07-02
Posts: 14
Website

Re: URL problem after latest update?

Thanks a lot! That solved it!

just pasted the <?php var_dump($_SERVER['HTTPS']);die(); ?> into a new document and saved it as test.php (was that right?) and accessed it on my server. Resulted in following output:
string(3) "off"

Any help to you?

Last edited by ilpalmo (2007-07-03 15:06:33)

Offline

#4 2007-07-05 21:09:23

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: URL problem after latest update?

Try making the following change instead (lines 65-76). Let us know if that solves it.

Last edited by Mary (2007-07-09 00:55:18)

Offline

#5 2007-07-06 07:49:03

ilpalmo
Member
From: Stockholm, Sweden
Registered: 2007-07-02
Posts: 14
Website

Re: URL problem after latest update?

Thanks for you help as well… but the last post solved it perfectly, I think I’ll stick with that

Offline

Board footer

Powered by FluxBB