Jump to content

HTTPS rewrite


esport

Recommended Posts

Hi Guys,

I have just had an SSL certificate installed to my site. It was installed to the subdomain.

 

I have a rewrite on the sub domain so http://orderonline.mydomain.com.au uses web servers from the same server but in another account. This rewrite work fine.

 

RewriteCond %{SERVER_PORT} 80 
RewriteRule ^orderonline/?$ /~dsoft/themes/RIV00/

 

However I can't seem it work with the https. The https is directed to the subfolder 'orderoline'. How do I do a rewrite for the https to point to the same directory as /~dsoft/themes/RIV00/

 

Thanks in advance.

 

Daniel

 

Link to comment
https://forums.phpfreaks.com/topic/245481-https-rewrite/
Share on other sites

Sure, you could have 2 different sets of rules.  The RewriteCond is like a pre-check if you want to look at it that way... if it matches the following rule will be looked at, if not it will be skipped.  This way you can have different rules.  Also keep in mind that as far as apache is concerned, the https site is a completely different site, so it makes sense that a part 80 rule which needs to issue a 403 to move to port 443 (https) would handle things differently than a rewrite in the port 80 site, which would be more of a standard rewrite.

Link to comment
https://forums.phpfreaks.com/topic/245481-https-rewrite/#findComment-1261568
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.