What's new

Help Redirect http to https

Status
Not open for further replies.

PHC_Jayvee

nakatapos din sa research😂🤣
Joined
Apr 14, 2018
Posts
11,351
Solutions
64
Reaction
13,372
Points
3,717
Closed
 
Last edited:
asan yung website mo papz..tapos san mo ginawa? wordpress installation ba? kung sa wordpress ka install mo lang yung redirect http to https ata yun. or redirect ssl
 
Na try ko nadin paps Yung option sa cpanel nila na redirect Kaso ganun padin error too many redirect
 
jayvee_15

Hello TS,

Normal lang yan sa WordPress, at tama yung redirection mo sa .htaccess.
Ito yung suggested fix sa issue mo.

Keep .htaccess rule below:
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

However, on your home and site URL nang WordPress setup mo.
Make sure naka point sa You do not have permission to view the full content of this post. Log in or register now.

1. You have two options. Alter the URL in wp-options table sa DB mo.
2. Define home and site URL sa wp-config.php mo. For example:
Code:
define( 'WP_HOME', 'https://example.web' );
define( 'WP_SITEURL', 'https://example.web' );

If ayaw parin, try mo e run
Code:
curl -IL https://example.web
then post sa result, para mkita natin saan ng redirect yung request after the suggested fix sa itaas.

Sana makatulong.
 
sir wala po ako word press hehehe sa byethost po ako nag sign up free lang kasi dun
pang practice
 
boss dun sa installation ng site mo using wordpress bago ka mag install ng site piliin mo yung https
 
tama yung nasa taas. punta ka lang sa cpanel mo tapos filemanager. then baka naka hide yung htaccess mo..show mo lang sa setting ng filemanager mo.
 
[XX='_iamkurt, c: 136745, m: 951947'][/XX]
Ito results paps

HTTP/2 403
date: Fri, 07 Aug 2020 13:57:18 GMT
content-type: text/html
set-cøøkíé: __cfduid=d6a3aa3db25439110e4e8d097588c153d1596808637; expires=Sun, 06-Sep-20 13:57:17 GMT; path=/; domain=.phdev.ml; HttpOnly; SameSite=Lax
vary: Accept-Encoding
cf-cache-status: DYNAMIC
cf-request-id: 046acf43c600000a746d232200000001
expect-ct: max-age=604800, report-uri="You do not have permission to view the full content of this post. Log in or register now."
server: cloudflare
cf-ray: 5bf1817fac5f0a74-KIX
 
jayvee_15
Try mo change .htaccess rules mo:

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} phdev\.ml [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://phdev.ml/$1 [R,L]
 
jayvee_15

Pwd ba mkita setup mo sa cloudflare na SSL ? Lahat options if pwd para madali natin mkita saan ang palya.

So far, http returns 403.

Code:
curl -IL http://phdev.ml
HTTP/1.1 403 Forbidden
Date: Sat, 08 Aug 2020 05:24:04 GMT
Connection: keep-alive
Set-cøøkíé: __cfduid=de56debaec946206993c5b771ce5346b61596864243; expires=Mon, 07-Sep-20 05:24:03 GMT; path=/; domain=.phdev.ml; HttpOnly; SameSite=Lax
Vary: Accept-Encoding
CF-Cache-Status: DYNAMIC
cf-request-id: 046e1fbfc800001d7b6707b200000001
Server: cloudflare
CF-RAY: 5bf6cf12dc1b1d7b-NRT
Content-Type: text/html
Content-Length: 0
 
Status
Not open for further replies.

Similar threads

Back
Top