1
vote
0answers
82 views

Apache SSL redirect loop

We are trying to redirect our site from http to https only. Everything we have tried in .htaccess has resulted in a redirect loop. If we manually type the "https://" in front of the url, our page ...
-1
votes
1answer
39 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
128 views

Redirecting www.subdomain.domain.com to domain.com with htaccess

So I'm trying to get my server configured in a specific way so that anyone who visits http://www.subdomain.domain.com or https://www.subdomain.domain.com gets redirected to https:// without the www. ...
0
votes
0answers
59 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
217 views

Looking to generate a directory exception to .htpasswd SSL-protected site

I have an entire site under .htpasswd with SSL - any http requests are rejected - and am trying to exempt a folder from the rule. Either to do a basic .htpasswd for the directory, or make it open. I'm ...
-1
votes
1answer
52 views

https version of website being redirected to some random website [closed]

My website http://www.scoredragon.com/, when accessed with https i.e (https://www.scoredragon.com/) instead of http is being redirected to book-your-driving-test-online.co.uk. I have searched for the ...
0
votes
2answers
459 views

how to redirect from “https://www.example.com” to be “https://example.com”?

I want to know: How to redirect from .. https://www.example.com to be https://example.com via .htaccess or CPanel? As the SSL only installed on the one without "www", and when I visit the ...
0
votes
2answers
69 views

SSL on another PORT

We have a web server that can handle SSL requests, but on port 445 instead of 443. So https://domain.com doesn't work, but https://domain.com:445 does. How can I use .htaccess to issue a redirect to ...
0
votes
2answers
516 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. ...
1
vote
1answer
82 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
84 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 ...
0
votes
1answer
91 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 ...
0
votes
1answer
56 views

HTTPS of for a subdomain

My site has a normal SSL installed and these are the changes I made in .htaccess RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} RewriteCond ...
1
vote
1answer
191 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
0answers
153 views

Redirect loop when forcing SSL

I have the following. htaccess config: <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteBase / # Force SSL RewriteCond %{HTTPS} off RewriteRule ...
4
votes
2answers
477 views

Forwarding 80 to 443 on Nagios woes

I perhaps just need some extra insight because I don't see where I'm going wrong. I used an SSL Cert to secure our nagios server. We want to specifically require all traffic over nagios (like 2 users, ...
7
votes
1answer
2k views

SSL redirect on EC2 instance behind SSL terminating load balancer

I'm trying to redirect all url's to https in a web application. I have an ec2 instance behind an elastic load balancer. SSL is terminated on the load balancer. Any attempts at redirection end up ...
1
vote
1answer
547 views

How do I avoid URL redirect when using SSLRequireSSL + ErrorDocument

Ok, so I have an Apache host I'm working on (shared host) who has this in their root .htaccess file.: Options -Indexes SSLOptions +StrictRequire ErrorDocument 401 "<!DOCTYPE html><html ...
1
vote
1answer
276 views

Redirecting subdomain from http to external https but avoiding redirect alert

I am using a hosted wiki service which runs over SSL, I have a CNAME redirect from my subdomain to it but browsers show a message saying it is being redirected. Is there a way I can get around this? ...
0
votes
1answer
103 views

Redirecting all request to a specific folder, works except for SSL doesn't?

I have a folder on my server called john. Inside this folder is an application I am working on. I have a self signed cert installed. if I go to https://mydomain.com/john/signin it works. I have an ...
1
vote
2answers
1k views

Force SSL on one page via .htaccess without looping

Okay, I have this code: RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} ^/borrowing/ill/request\.php$ RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] The way I would expect this to ...
1
vote
0answers
412 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
2answers
654 views

Force SSL with Name-based Virtual Host (possibly with .htaccess)

I have several subdomains served by Apache using Name-based Virtual Hosts. The way it's set up is that I have one directory holding all the site's pages, but it's accessible using several subdomains ...
1
vote
2answers
1k views

htaccess with conditional rewritebase

I have a site (the-tack-shop.co.uk) in which I'm testing my e-commerce framework on. I was trying to test payment using a shared SSL: https://web43.secure-secure.co.uk/the-tack-shop.co.uk/. I had to ...
0
votes
1answer
48 views

Help with Setting Certain Links to HTTP and HTTPS

I have an newly installed SSL certificate on my website and I am trying to figure out how to make some pages point specifically to https and other point only to http. For example, if someone is on my ...
4
votes
1answer
1k views

force https with apache before .htpasswd

I have this in my .htaccess file RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://www.myweb.com/phpmyadmin$1 [R,L] AuthUserFile /var/www/myweb/.htpasswd AuthGroupFile /dev/null ...
1
vote
0answers
916 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 ...
0
votes
2answers
4k views

Apache: rewrite port 80 and 443 - multiple SSL vhosts setup

SETUP: multiple SSL domains are configured on a single IP, by using vhosts with different port numbers (on which Apache listens) Apache 2.2.8 on Windows 2003 (no comments on this pls) too many ...
1
vote
2answers
728 views

Using mod_rewrite to enforce www in URL

I have a hosted website which includes a secure regiatration and purchase section which provides access to paid content. The SSL certificate validation will fail if the url is not in the form ...