rewriting old https requests

New to mod_rewrite? This is a good place to start.

rewriting old https requests

Postby kpc » Fri Jun 26, 2009 2:41 am

Hi

I have a slight problem and wondered if mod_rewrite could help. At the moment I have two SSL locations on my server, both with their own certs e.g.

https://secure1.myserver.co.uk

&

https://secure2.myserver.co.uk

I want to move the secure2 location so that it comes under secure1 effectively removing that SSL.

The problem occurs when some users will still use the old URL https://secure2.myserver.co.uk, I need to ensure that all users who use that get redirected to https://secure1.myserver.co.uk instead.

The SSL cert for https://secure2.myserver.co.uk won't exist on that server any more, if users try going there they will be redirected to https://secure1.myserver.co.uk and receive a cert error.

I'm guessing this can't be done at the mod_rewrite level since certs operate at the browser level, there's no way getting around not having both SSL certs on the single server. I may have to leave it like this until the new URL is published better.

Thanks. Hope that's clear enough.
kpc
 
Posts: 12
Joined: Tue Nov 18, 2008 12:55 am

Postby richardk » Fri Jun 26, 2009 8:56 am

I'm guessing this can't be done at the mod_rewrite level since certs operate at the browser level, there's no way getting around not having both SSL certs on the single server.

Yeah. For the browser to connect and mod_rewrite to run the SSL certificate must exist.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 109 guests

cron