SSL Conversion Help

Started by mcpheex3, February 04, 2019, 12:33:44 PM

Previous topic - Next topic

drewactual

i think that redirect to https in your top level htaccess stands a pretty good chance it was written by that plugin....

yes.. deactivate it. 

THEN....

go to your TOP level htaccess and paste the redirect code in it, and ensure the WP redirect is no longer there.

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


(don't forget WITH or WITHOUT WWW... this ^ is 'without'...

and comment out the WP redirect if it is still there after deactivating the plugin... meaning, IF it is there, it should now (make it) look like:

# BEGIN WordPress
#<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteBase /
#RewriteRule ^index\.php$ - [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /index.php [L]
#</IfModule>
# END WordPress


the little #'s make the engine ignore those directives... this renders your TOP level htaccess to use the more literal redirect without the fancy WP stuff.... and should resolve this issue for you altogether.

drewactual

to change the forum to www, use repair_settings and ensure the URL's are ALL https://www.... it makes a huge difference..

if those settings are correct EXCEPT for the forum's home URL, you can access your settings.php file and change the "forum's address" to reflect the www.

mcpheex3

OK, I will try that. (Makes me nervous!)

If I wanted to lose the www altogether, would I just take it out of the Settings on the WP links?

drewactual

yup.

that redirect coughing is because of that plugin writing to your htaccess.. when you use the one i provided it should cascade to every directory within the parent directory. 

drewactual

now that you've eliminated that plugin, you're going to have to tell WP to load SSL Secure... it's in the settings area of dashboard.. this will take care of the links inside your WP to make them https...

then... your amazon is loading over http... are you using a plugin to bring that in? if so... navigate to it within your dashboard, and change the URL to https there too.

mcpheex3

I changed all of the URLs in the repair settings to include www. Now I get an error message at the top that says, "The default theme's directory is wrong, please correct it by clicking this text."

When I click it, they have all changed to include the www. When I save, it takes me back and still get the same error.  :-[

drewactual

give me a few seconds.... don't go anywhere.

mcpheex3

OK. Will do. Also... do I want two forward slashes after forum in the rewrite rule or just one?
RewriteRule ^(.*)$ https://theflourishforum.com/forum//$1 [R=301,L]


drewactual

sweet baby james... no... you only want the one:


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


JUST like that... top of your top level htaccess.... that friggin' slash is ALL on me and thanks to a dirty screen...

drewactual

with or without the www.... your choice

drewactual

post the contents of your top level htaccess file?

mcpheex3

LOL! Hey, I actually learned something in my Pascal programming class back in 1990!  ;D

I tried the new htaccess and I get the Page isn't redirecting properly and it shows the URL as being https://theflourishforum.com/forum//forum/forum/forum/...etc.

mcpheex3

The original htaccess was:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

order allow,deny
deny from 200.143.140.94
allow from all

mcpheex3

I think I'm going to try it all without the www since the forum part won't work with the www.  ;)

mcpheex3

Uh oh... can't get back to repair settings ...

drewactual

i see the WP redirect and a blacklist for an IP...

overwrite ALL of that with the code i gave you..

yeah, it's redirecting from some mechanism... we'll find it.  i ain't gonna abandon you until this is fixed.

is there a .user.ini in the SMF directory? how about the top level directory?

drewactual

dump your local cookies and cache... i used another browser and you're in business!!!!

mcpheex3

Aw, thank you!

I don't see a .user.ini (searched the forum dir and top level dir).

I was able to get back to repair settings. I took the www out just until we can figure out what is happening.

Deactivating the simply SSL plugin now makes the forum inaccessible.

I get this: https://theflourishforum.com/forum//forum/forum/forum/forum/forum/forum/forum/forum/forum/forum....

mcpheex3


mcpheex3

Sweet! I'm back up... but no green padlock.

You have helped so much and it's late. I won't blame you if you go to bed and I'll keep working on it some more and in the morning.  ;)

Advertisement: