- 8,055
- 2,460
- Operating system
- macOS
- Mobile operating system
- iOS
Simply in your reverse proxy host for that php.mydomain.com just redirect it to your wp container.How should I do this?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
As an Amazon Associate, we may earn commissions from qualifying purchases. Learn more...
Simply in your reverse proxy host for that php.mydomain.com just redirect it to your wp container.How should I do this?
Ok, sorry, now I understood.Simply in your reverse proxy host for that php.mydomain.com just redirect it to your wp container.
Again rp problem by the looks of it.this is still not working (I obtain Synology page with "Sorry, the page you are looking for is not found.").
It should work without redirect if you are targeting https directly.Should I set the website url with the https and then follow the tutorial for redirecting http to https?
http://php.mydomain.com
. Then, I add to that container a binding to Port 443, I create the reverse proxy rule for Port 443 but when I try to reach phpmyadmin at https://php.mydomain.com
I always get the same error "Sorry, the page you are looking for is not found."https://www.mydomain.com
!https://php.mydomain.com
I needed to set up as destination port the one associated to Port 80 in the container, with http protocol.Didn’t follow this thread (I don’t know anything about Wordpress), but I’m glad you got it workingredirecting mydomain.com (without www) to the website. Even this should be done modifying .htaccess file?
mydomain.com
then I created a CNAME with www to catch those who type www.mydomain.com
.Correct you can do that for your specific case with htaccess file.Or I just need to modify the .htaccess in the html folder of wordpress?)
- redirecting mydomain.com (without www) to the website. Even this should be done modifying .htaccess file?
Just wanted to point out that www is a subdomain (and can be under a CNAME). However, if this is the way you've done it then there might be something to be configured within Wordpress. So you better follow @Rusty recommendations.Thanks @WST16.
I already have an A record pointing from my domain to my static public IP address, and a CNAME record pointing from www to my domain.
Maybe I need to set the Reverse Proxy to mydomain.com instead of www.mydomain.com?
<IfModule mod_rewrite.c>
RewriteEngine On
# ensure www
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# ensure https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
http://mydomain.com
and https://mydomain.com
, destination for both http://nasip:32789
.Why do you want to direct non-www to www (do you want to redirectEven like this only redirect from http to https was actually working, non-www to www was still not.
mydomain.com
to www.mydomain.com
?). Usually the other way round is enough (as it’s working with you now). I’m sure I’m missing the point.I just decided to haveWhy do you want to direct non-www to www (do you want to redirectmydomain.com
towww.mydomain.com
?). Usually the other way round is enough (as it’s working with you now). I’m sure I’m missing the point.
www.mydomain.com
as canonical domain name. http://mydomain.com
, https://mydomain.com
and http://www.mydomain.com
all redirecting to https://www.mydomain.com
.We use essential cookies to make this site work, and optional cookies to enhance your experience.