-1
votes
1answer
34 views

How do I redirect al url request using htaccess when I already have rewrite rules?

I've tried everything but simply can't get this to work. This is the default Wordpress redirect code that sits in my htaccess file: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / ...
0
votes
1answer
45 views

How to force HTTP for some pages in HTTPS forced website with htaccess? [duplicate]

A part of my htaccess that redirects HTTP traffic to HTTPS looks like this: RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] I need allow ...
0
votes
0answers
45 views

Redirect to HTTPS and back with .htaccess on specific pages

I'm trying to use rewrite rules to redirect to HTTPS on specific pages, and back to HTTP on all the other pages. The pages that needs to be redirect are those who have the following in the URL: ...
0
votes
1answer
1k views

Redirect all http AND https non-www URLS to https://www.example.com via htaccess

For reasons much too long and complex to get into (it involves several layers of corporate red tape resulting in someone else not purchasing a wildcard SSL certificate I requested), I have to set up a ...
0
votes
0answers
17 views

.htaccess with addondomain and https ssl

I have main domain and addon domain. Question. 1)When surfing to: ftp.addondomain.com or mail.addondomain.com For some reason it goes to the main domain. (normally this should not be problem but i ...
0
votes
1answer
204 views

URL rewriting and SSL conflict

I am facing following problem. URL rewriting with .htaccess is working perfectly on HTTP URLs. Now I have installed SSL Certificates on my server and now accessing my site with HTTPS URLs. Site is ...
0
votes
2answers
66 views

.htaccess redirect just the root of my site to http

What's wrong with these redirect rules? RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} =www.pointfixed.com RewriteCond %{HTTPS} on RewriteRule ^$ http://www.pointfixed.com/ [L,R=301] ...
0
votes
1answer
121 views

htaccess redirect http to https causes redirect loop

I have edited my .htaccess file to redirect any http request to https://mydomain.se however, this has cause the website to fall in redirect loop. I have looked at the other solutions and compared them ...
0
votes
2answers
451 views

Redirecting https urls to the http equivalent using htaccess file

The situation I have is that I have made a new website for a client, the URL format of which is http://newsite.com. The clients old website used SSL and had the URL format https://www.oldsite.co.uk. ...
0
votes
3answers
232 views

.htaccess - Redirect to https

I'm using the following .htaccess to redirect example.com or www.example.com to http://www.example.com. RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ ...
1
vote
1answer
71 views

Force SSL on checkout page while everything else uses standard HTTP

I am trying to use .htaccess to make one page on my site redirect to it's https counterpart. The checkout.php page lives in the root / html folder of the site. ( /checkout.php ). I tried using this : ...
0
votes
0answers
77 views

Can I merge my htaccess rewrite requests into something more efficient?

I'm afraid my knowledge of .htaccess files is really sketchy and my understanding of regular expressions, and the like, is even worse. I was hoping I might find some guidance here. I'm running a ...
-1
votes
1answer
112 views

MODX Evolution send all webtraffic to https [duplicate]

Possible Duplicate: Apache rewrite rules and DNS settings for HTTPS sites I have just added a SSL sertificate to a site, and the site should only answer on https. People that visit http ...
1
vote
2answers
396 views

How to redirect traffic to http

I have an apache server under a proxy that can run HTTPS. Instead of sending the HTTPS=on header, it sends HTTP_X_FORWARDED_PROTO=https. I want to write an .htaccess rule that redirects all requests ...
0
votes
1answer
81 views

How to specify Multiple Secure Webpages with .htaccess RewriteCond

I have 3 pages that I want to make secure on my website using .htaccess -login.php -checkout.php -account.php I know how to make just one work page at a time using .htaccess RewriteEngine On ...
5
votes
3answers
5k views

How to redirect from HTTPS to HTTP before server error?

I used to operate a website with an SSL certificate, but have stopped using the SSL certificate. The problem is that most of the external links to the website use the https:// prefix. I have tried ...
1
vote
1answer
175 views

Is the following .htpasswd .htaccess login SSL protected?

I have a directory that I have protected using .htpasswd/.htaccess HTTP authentication. In the .htaccess file for the directory I have this: SSLRequireSSL <Files .htaccess> order allow,deny ...
0
votes
1answer
300 views

Apache2 Rewrite http to https on port 5553

I want to know if it is possible via htaccess to rewrite my URL http://mysite.com:5553 to https://mysite.com:5553. My Apache server has only one virtualhost on port 5553, with SSL on.
1
vote
1answer
525 views

HTTPS/HTTP redirects via .htaccess

I have a somehow complicated problem I am trying to solve. I've used the following .htaccess directive to enable some sort of Pretty URLs, and that worked fine. For example, http://myurl.com/shop ...
0
votes
1answer
208 views

Rewrite rules for https only for login with htaccess

I am using apache, and i have on my index page (index.php) a login and password field. The authentification is made with the login.php page and then if i am authaurize i can reach the next page ...
5
votes
1answer
1k views

.htaccess rewrite http to https results in loop

On an apache 2.2 server running varnish, I am trying to redirect http -> to https for an entire Drupal Commons (http://commons.acquia.com/) site. Since varnish caches some redirects (R=301, but not ...
1
vote
2answers
4k views

How to redirect example.com from HTTPS to HTTP, then HTTP example.com to newdomain.com?

As of now I use this rule (in .htaccess of example.com) to redirect HTTPS/HTTP example.com to newdomain.com: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://newdomain.com/$1 ...
1
vote
3answers
678 views

Redirect HTTPS to HTTP except for specific URL

We'd like to redirect all HTTPS traffic to HTTP except for a specific URL which is /user/login So far we've got: RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^user/login(.*)$ ...
1
vote
1answer
553 views

Apache htaccess redirect https from non-www to www

How can I redirect from https://mysite.com to https://www.mysite.com? The SSL certificate is bought for www.mysite.com and shows a warning if accessed without www.
2
votes
1answer
2k views

HTTPS for /wp-admin/ and HTTP for everything else?

I'm running a WordPress site on a shared Apache server on Dreamhost. I already have define('FORCE_SSL_ADMIN', true); set (and working) in my wp-config.php so that SSL is used for the /wp-admin/ ...
1
vote
0answers
396 views

How do I get self signed SSL certificates to work locally on Mac OSX?

I'm trying to test a local page on my local git repository. Unfortunately, the SSL certificates I installed using OpenSSL and Mod_SSL aren't seeming to work. I've worked on checking the httpd file ...
1
vote
0answers
898 views

Set up SSL/HTTPS in zend application via .htaccess

I have been battling with .htaccess rules to get my SSL setup working right for the past few days.I get a requested URL not found error whenever I try access any requests that does not do through the ...
3
votes
3answers
989 views

Apache redirect to https for basic auth

I have a tricky variation on an old problem. I have an apache based site that should generally be accessed via http/port 80. However for certain areas protected areas that require authentication ...
1
vote
2answers
2k views

Turning HTTPS on via .htaccess

I currently have a site where I am using .htaccess to turn https on for certain sections of the site: RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} (evaluate/purchase*) RewriteRule (.*) ...