Redirect page to secure page - iis

I cant seem to find an exact answer on the web to suit my problem. I'm trying to redirect/rewrite:
http://www.ccy.com.au/availability/booking.asp
https://secure.ccy.com.au/availability/booking.asp
SSL has been setup on secure domain. It's been done through plesk(v11.0.9_build20120609.17 os_Windows 2008) and I'm using IIS 7.5
Is there a way to achieve this sort of redirect/rewrite as I'm very new to server related tasks. Thank you in advance!
p.s I'll provide other information I may have missed!

In your booking.asp file, can you simply do:
<%
Response.Redirect("https://secure.ccy.com.au/availability/booking.asp")
%>

Related

Why is openam redirecting to the wrong URL?

I am following a tutorial on setting up realms.
I am protecting the URL http://fec.example.com:80 with a apache web agent pointing to my openam server.
When I access http://fec.example.com:80 I expect it to go to
http://subscribers.example.com:18080/openam/XUI/?goto=http%3A%2F%2Ffec.example.com%3A80%2F#login/
But instead it goes to:
http://subscribers.example.com:18080/openam/XUI/?goto=http%3A%2F%2Fopenam.example.com%3A18080%2Fopenam%2Foauth2%2Fauthorize%3Fresponse_mode%3Dform_post%26state%3D704b6f90-af10-214e-92bb-61b2ab1d05e5%26redirect_uri%3Dhttp%253A%252F%252Ffec.example.com%253A80%252Fagent%252Fcdsso-oauth2%26response_type%3Did_token%26scope%3Dopenid%26client_id%3Dwebagent%26agent_provider%3Dtrue%26agent_realm%3D%252Fsubscribers%26nonce%3D6F8D1B2B7D3EDD5547812671C2415BAB&realm=%2F#login/
Any ideas on how I can fix this?
Thanks
This means you are using Agent version 5 and this is now using OIDC to achieve SSO. Please have a look at the docs.

Track from where link is clicked node.js

I'm trying to track from where my links are clicked.
Exemple I place a link to my website on facebook, instagram, linkedin.
I would like to know where my link is clicked most of the time.
bit.ly does it and I don't know how.
One of my ideas was to identify links like
www.exemple.com/facebook_url
www.exemple.com/instagram_url
but if I can avoid this it would be perfect.
Any idea ? :)
I found how !
req.headers.referer;
give me the url used to redirect my user :)
The simplest way to do this would be to set up a web server with redirects and analytics already built in. You could also build your own analytics using a redirecting html + js
If you have access to a webserver, you could use PHP to do a conditional redirect.

Lets Encrypt ACME Challenge file not accessable from IIS

I have been trying to generate a SSL certificate for one of our projects which is running on an Azure VM which has no IP restrictions. However, the challenge file which is generated throws a 404 error and is not accessible over the web.
I have tried the following:
Moving the static content type above the extension less options in IIS
Adding a mime type for text/json, text/html
None of the above work which is making it really hard for me to generate a SSL using this service. Any idea how I can make it accessible ? I have given full access to that specific App Pool identity so permissions don't seem to be an issue in this case, its just the way the extension less files are being handled in IIS
Any help is appreciated.
Thanks,
Vishal
You just Add a New MIME Type on IIS
like this .
and try use the url at your browser . you will see that
Now you can Pass the lets-encrypt authentication :)
Also, if you're using a system with lots of custom routing or a framework that interferes with how URLs are handled (e.g. a CMS), ensure that you've told it to ignore /.well-known
We often use Umbraco for public-facing sites and I keep forgetting that I need to add ~/.well-known to the umbracoReservedUrls app setting in the web.config. Hopefully next time I'm stuck, I'll come across this answer...
Taking inspiration from the accepted answer, I did the following:
I was using plesk for windows on Godaddy.
Go to
Web server settings
In the MIME types, added the following node and click OK.
text/plain .
Note the dot at the end of the above setting.

Website A 'redirect' to subdomain of website B, with content of website A

There has been a question made towards me recently to do the following:
We have a website with Drupal running in IIS.
On that site is an URL Redirect to a website hosted externally, obviously with a name completely irrelevant to the name of our company.
The question now is the following;
They want to change to URL to a subdomain of our website. Example: from "www.external-site.com" to "www.sub.internal.com" (while still showing content of the external website)
They want the current page of that website to be reflected in the URL bar. So it wouldn't say "www.sub.internal.com", but it would say "www.sub.internal.com/solutions/page1.html" (instead of "www.external-site.com/solutions/page1.html")
It's possible that I forgot another 'condition' but have mentioned before this.
So, if someone visits through our URL Redirect to External-website, it needs to show our subdomain instead of their domain in the URL, AND it needs to show the current page when people start browsing while still using our subdomain in the URL.
Now, I checked the external-website, and it seems that most of the links available are relative links (if this would be any useful information).
Currently, the external website is hosted externally, and will remain to be so for next few years. (I believe we bought the company)
I have been asking around and looking up, and the best possible thing seems to use domain forwarding, but even then it still doesn't seem to comply with the entirety that they asked of me.
I am but a 'simple' .NET programmer, held responsible to do support for anything involving the websites, and I can't say I have extended knowledge about infrastructure. (But I can ask people to do this for me)
Is there anything that could solve this?
Thanks so much!
IIS's URL rewite and Application Request Routing (ARR) combo can help you what you want to achive. Here are few links which may guide you to configure ARR. Please note that these links dont exibit exact solution to your problem however you can take clue from it and fabricate your solution accordingly.
http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing
http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-rule-template
It sounds like you'll want to use a full-page iframe: do not redirect but show a page with an "inner page" instead: that inner page is the external web site. That way, users do not see the external site in their URL bar.
http://webdesign.about.com/od/iframes/a/aaiframe.htm
You need to configure the equivalent of Apache Virtual Host with Reverse Proxy on IIS.
See this answers:
https://serverfault.com/a/271030
and
https://stackoverflow.com/a/10003306/2131693

Magento Secure/Unsecure Items During Checkout

Magento 1.6
I'm looking for the correct way, to place images on a template, that are secured during a secure session, and unsecured, during an unsecure session. I've searched here and on the web and the only solution I have come to find is to use this call:
echo $this->getSkinUrl('images/imagename.jpg', array('_secure'=>true));
However, this ALWAYS loads the image in https, even when you are not in an https environment.
There has to be a dynamic way of setting this up.
Any help / insight available is greatly appreciated.
Thanks!
Did you try :
array('_forced_secure'=>true)
Check :
core/Mage/Core/Model/Url.php

Resources