I'm trying to force https on the login page with 3.0.13-PL1. I set Server protocol to: https:// but that only changes http:// to https:// affects after the login. I do not want to use mod_rewrite on my server.
Apache
If you are admin Redirect Request to SSL
But I think you aren't:
Apache Redirect HTTP to HTTPS using mod_rewrite
.htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Related
If I have multiple domains (*.net, *.org, *.com) pointing to the same dir on the server with a single .htaccess file, how can I write a redirect that changes the url as well as redirects to the https:// secure connection of the site?
So if they visit http://korell.com, it goes to https://korell.com and if they visit http://korell.org, it does to https://korell.org. And so on and so forth.
I already have www.korell.* going to http://korell.* in the A records.
You can use:
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,L,R=301]
I have this line in my mycooldomain.com.conf (apache2)
Redirect permanent / https://mycooldomain.com
it redirects to https.
What I am trying to do is redirect subdomains to http while all domain requests go through https
for example:
mycooldomain.com/help will redirect to https://mycooldomain.com
while user.mycooldomain.com/blah will redirect to http://user.mycooldomain.com
right now subdomains are being sent to https as well
Add a rewrite rule:
RewriteEngine on
RewriteCond %{HTTP_HOST} user.mycooldomain.com
RewriteRule ^(.*)$ http://user.mycooldomain.com/$1 [QSA, R=301, L]
Redirect permanent / https://mycooldomain.com
I am trying to redirect all http to https.
I have added a .htaccess file to my root folder var/www/html/ using:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
However, this code is not working and the page still showing http connection.
My web site is working fine using https. How can redirect my site to ssl connection? Do I have to restart apache?
I recently installed my SSL certificate, and I'm attempting to enforce a https connection to all my pages. However, previously I also redirected all requests to the www version of the request page. When combining an http redirect to https and concurrently redirecting traffic to www, I get a looping redirect warning on browsers. Hence, how can I make .htcaccess rule (I actually just use the directory config file) that will achieve what i want: always https://'www'
Here's the current combination that I have:
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}$1 [NC,R=301,L]
RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule (.*) https://www.mydomain.com$1 [R=301,L]
Your question is a duplicate of htaccess redirect to https://www
Also, you can solve the WWW problem with DNS by simply pointing your naked domain to WWWizer's free naked domain redirect service's IP 174.129.25.170
in a search from google , i found my domain url with https and not http .
For example : https://xxxx.com/yyyy/zzzz and not http://xxxx.com/yyyy/zzzz
It's possible redirect from https to http for the domain xxxx.com ?
I use centos and apache web server
On the same server, i have a certificate https that respond to https://zzzz.com
Thanks
Carlo
This will work with mod_rewrite on. Put this code in .htaccess file at root of the site.
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}