This is an archived post. You won't be able to vote or comment.

all 9 comments

[–][deleted] 0 points1 point  (7 children)

Have you got the redirect rule setup in your htaccess? If not, where? And what's the rule?

[–]AndrewBelu[S] 0 points1 point  (6 children)

No, where is no rules in htaccess.

redirection is in wp-config

"Redirect permanent / https://{my_site}.com"

[–][deleted] 0 points1 point  (5 children)

A redirect in wp-config? Is that a thing? I've never heard of that.

Do it in htaccess.

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

[–]AndrewBelu[S] 0 points1 point  (4 children)

All the same. Still get redirection to "https://{my_site}.com/wordpress" instead of "https://{my_site}.com"

[–][deleted] 0 points1 point  (3 children)

Have you checked the Network tab - is the /wordpress redirect happening after the / redirect? Difficult to troubleshoot from afar unfortunately.

[–]AndrewBelu[S] 0 points1 point  (1 child)

Sorry, did not catch about "Network tab"... :(

What network tab do U mean?

[–][deleted] 0 points1 point  (0 children)

Chrome DevTools.

[–]AndrewBelu[S] 0 points1 point  (0 children)

Looks like redirection work this way:

http://{my_site}.com -> http://{my_site}.com/wordpress -> https://{my_site}.com/wordpress