0
votes
2answers
40 views

Subdomain-to-folder redirect (HTTPS)

I have the following in my httpd.conf at the very bottom. No other configuration is done. NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin webmaster@contoso.com ServerName ...
-1
votes
1answer
117 views

mod_rewrite: Redirect https://example.com to https://sub.example.com [duplicate]

I have an domain example.com running on an Apache Server and I want to redirect every call to https://example.com to https://sub.example.com. I have a Virtual Host configured like this: ...
0
votes
1answer
257 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
515 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
0answers
138 views

Apache: Setting up a reverse proxy configuration with SSL with url rewriting

There is a host: secure.foo.com that exposes a webservice using https I want to create a reverse proxy using Apache that maps a local http port on a server internal.bar.com to the https service ...
1
vote
2answers
397 views

Rewrite rule for drupal login page, force https

I'm struggling writing a rewrite rule for a drupal login page which needs to accessed under https. RewriteRule ^/?(/user) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] so baiscally i need to ...
0
votes
1answer
311 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.
3
votes
2answers
2k views

Redirecting SSL without raising an alert

A client has an SSL certificate only for the www.site.com version of the domain, not site.com. Redirecting for regular HTTP was not a problem via mod_rewrite. However, this method seemed to fail for ...
1
vote
2answers
946 views

Is there a way to access 'mod_rewrite' before 'mod_ssl'?

Scenario: I have 2 domains: thinkingmonkey.me & thinkingmonkey.com. Whole of the site is accessed under https. Bought a certificate from a CA with common name thinkingmonkey.me. For http: ...
0
votes
3answers
7k views

Why is https not working?

I am trying to redirect just the root of my site to https. Although the rewrite happens, https does not yield anything. The browser says. connecting to thinkingmonkey.me... and stagnates. ...
0
votes
1answer
110 views

Redirect stylesheets through secure url to a different server

I have a domain http://services.mydomain.com which has a secure login through a secure central provider (https://secure.mydomain.com) on a different server with proxypass. When I go to the login page ...
2
votes
1answer
330 views

Rewriting to https without a certificate?

Our environment looks as follows: HLB (Ace) --> redundant Apache servers --> Backend Websphere servers Secure Traffic coming into the Load Balancer, where the SSL Certificate is decrypted. The ...
2
votes
1answer
621 views

Apache redirecting https://host:port/folder to http://host:port/folder/

I have a apache server using two SSL domains (no SNI support) in different ports, kinda like this: https://host1.tld:443 (default) https://host2.tld:444 (non-standard) I have a Rewrite rule to ...
1
vote
1answer
184 views

Redirect http://example to http://www.example.com AND https://example.com to https://www.example.com

As the question states, I want to redirect http://example to http://www.example.com AND https://example.com to https://www.example.com. I tried the apache re-write rules: RewriteCond %{HTTPS} off ...
0
votes
1answer
1k views

Rewrite rule HTTPS to different port

I have an Apache with SSL running on port 444. I need to rewrite all url/requests starts with https://servername ( that is default port 443) to https://servername:444. I have rule on .htaccess like ...
0
votes
2answers
1k views

Apache, vhost, redirection, https, ssl issues

Issues: https://www.example.com -> should redirect to http://www.example.com, doesn't, gives Error code: ssl_error_rx_record_too_long without redirection, error_log: "[error] [client 127.0.1.3] ...
0
votes
1answer
252 views

apache front-end rewriting URL to different https ports?

One of my users is having some trouble with forwarding to an internal web app from a public address. Everything worked fine for him when the situation was like this: front page: ...
-1
votes
1answer
840 views

Mod_rewrite giving 403 forbidden when on https

Hey, I am developing a CMS/Framework for my clients and have just implemented a PHP script that detects if the currently loaded "application" requires HTTPS and redirects to the HTTPS equivalent if ...
1
vote
1answer
3k views

Apache module “mod_jk”. Setup rewrite condition for using https for specific url/context

I do have a "simple" question that probably can be answered by you in seconds ;) I setup an apache webserver (v2.2), this apache server serves as balancer with "mod_jk" enabled. 2 different ...
2
votes
4answers
1k views

Apache rewrite rules and DNS settings for HTTPS sites

For a web application located at: https://www.domain.com/ With an SSL certificate issued to "www.domain.com", What is are the proper rewrite rules, DNS settings, or combination of both which makes ...
0
votes
1answer
121 views

mod_rewrite all but a few URLs

I have a site with only 3 URLs that need to be accessed via HTTPS. So I have 2 VirtualHost sections, one for HTTP (port 80) and the other for HTTPS (port 443). Redirecting from HTTP to HTTPS is easy, ...
0
votes
2answers
1k views

Lighttpd mod_rewrite and SSL

I'm trying to prevent the search engines from crawling through SSL version of the site, to prevent content duplication and canonization issues. I found the following great article: ...
1
vote
1answer
962 views

direct http to https on certain pages?

Below is some code I added to my .htaccess code how can I add certain pages to be re-directed to https? (such as login.php & login.html) Also, if the user types in www. they get a "untrusted ...