+ 2

Why is only home page secure with https and the other pages of my site are not ?

The other pages of my site are not secure,only my home page is

29th Aug 2020, 5:07 PM
Ayman
Ayman - avatar
58 odpowiedzi
+ 2
I changed nameserveres of my domain, I got the new nameservers from cloudframe,so now I have https and my site is secure, but I created a new page but it's not secure, I wonder why, just the main page of my site is secure
29th Aug 2020, 5:51 PM
Ayman
Ayman - avatar
+ 2
Your website is not made from scratch, it is a wordpress based site, you cannot use it without wordpress If you want you can create a new website, purely using HTML css javascript, and PHP
30th Aug 2020, 5:33 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
i hope you did it the right way.. any one of the below steps would be more than enough first step: to check the settings > general > addres and site url second step : To check .htaccess file.. And add this content at the top of the file <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> Third Step : to edit wp-config file and add the Constants define('FORCE_SSL', true);  or define('FORCE_SSL_ADMIN', true);  Forth Step : to look for database if any table contains http:// Fifth Step : To use some SSL plugins That's all, any one of the method should work
30th Aug 2020, 2:05 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
Ayman the same way you did for WordPress, except you don't have to use wordpress from infinixfree you have to directly upload your project in htdocs
30th Aug 2020, 6:08 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
One more thing for free hosting, try 000webhost it's better and i use it for testing purpose
30th Aug 2020, 6:14 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
It's the login page and the authentication page IMHO 🙄
31st Aug 2020, 3:41 AM
Sanjay Kamath
Sanjay Kamath - avatar
0
In cloudflare there is an option to force https, try that.. And apart from that, sometimes the caching might be issue, so purge all the caches from cloudflare..
29th Aug 2020, 6:14 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
I purged everything, it still didn't work, so where can I find that option of forcing https?
29th Aug 2020, 6:23 PM
Ayman
Ayman - avatar
0
Actually I'm using that option "always use https" but still doesn't work, new pages in my site are not secure
29th Aug 2020, 6:30 PM
Ayman
Ayman - avatar
0
Have youo modified the htaccess file?
29th Aug 2020, 6:42 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
Try modifying, the .htaccess file in your hosting server's public_html folder, and add this content at the top before any other content in that file RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
29th Aug 2020, 7:01 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
Do you recommend a good file manager? My current file manager doesn't have a search field
29th Aug 2020, 7:25 PM
Ayman
Ayman - avatar
0
Where have you hosted your WordPress website? And how do you access your backend files which are stored on the server..
29th Aug 2020, 7:27 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
I hosted my WordPress in Infinityfree website, I access to the folders and files through file manager in control panel
29th Aug 2020, 7:30 PM
Ayman
Ayman - avatar
0
Yes then it's good enough, so you should have access to .htaccess file within the public_html directory
29th Aug 2020, 7:34 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
I found a folder called "htdocs" inside it there is a "htaccess" file, do you mean that?
30th Aug 2020, 9:34 AM
Ayman
Ayman - avatar
0
Oh yes, it is .htaccess right? Modify that, with the above content I mentioned make sure you DON'T remove the previous content of that file
30th Aug 2020, 9:35 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
I modified it, now my website doesn't work When I open a page of my site I fine this message "Found The document has moved here ("here" is a link) Additionally, a 302 Found error was encountered while trying to use an ErrorDocument to handle the request"
30th Aug 2020, 10:33 AM
Ayman
Ayman - avatar
0
Did you removed the previous content?? Undo the changes and please share the. htaccess file using pastebin, so we could understand whether you are modifying right file or not
30th Aug 2020, 10:34 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar