Server protocol

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

Server protocol

Postby steve » 26 Sep 2012, 11:15

Can any one point me in the correct place to edit a .htaccess file so that https:// is redirected to http:// on a website that you to use a ssl certificate?

the url was https://www.somesite/
and now needs to be http://www.somesite/

As its indexed in search engines as https

Beer for the person who gets me the answer ;)
Steve ©

martin123456
Old member
Old member
Posts: 677
Joined: 30 Mar 2011, 00:32
Contact:

Re: Server protocol

Postby martin123456 » 26 Sep 2012, 11:19

Maybe here i was looking for something and im sure its on this site http://www.javascriptkit.com/howto/htaccess7.shtml

ShadowmanUK
Member
Member
Posts: 164
Joined: 07 Jul 2009, 20:13
Location: Leeds, England
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server protocol

Postby ShadowmanUK » 26 Sep 2012, 11:20

Hi

Use mod_rewrite

http://kb.mediatemple.net/questions/85/ ... rite+rules

So you should be able to do this



Filename: .htaccess

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]


But use http instead of https

steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

Re: Server protocol

Postby steve » 26 Sep 2012, 11:29

Steve ©

User avatar
Ooopsie
Supporter
Supporter
Posts: 1213
Joined: 19 Aug 2010, 16:34
Location: Index, WA
Contact:

Re: Server protocol

Postby Ooopsie » 26 Sep 2012, 11:58


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server protocol

Postby RMcGirr83 » 26 Sep 2012, 14:10


steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

Re: Server protocol

Postby steve » 26 Sep 2012, 16:59

Steve ©

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server protocol

Postby RMcGirr83 » 26 Sep 2012, 17:06

Good!! Now fork up my :beer: bitch!! :inlove:

User avatar
Ooopsie
Supporter
Supporter
Posts: 1213
Joined: 19 Aug 2010, 16:34
Location: Index, WA
Contact:

Re: Server protocol

Postby Ooopsie » 26 Sep 2012, 22:47

Boy, you don't share shit.

User avatar
Stoker
Member
Member
Posts: 198
Joined: 14 May 2011, 20:54
Contact:

Re: Server protocol

Postby Stoker » 28 Sep 2012, 06:12

I never got the https to http redirect to work on my server.
Probably because I never had a ssl certifikcate.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Modders MOD support”

Who is online

Users browsing this forum: No registered users and 52 guests