Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.