How to redirect to external site? - web

I am using Netbeans J2EE. When put href="www.google.com" in a button in my web application I get http://localhost:8084/www.google.com in the address bar. Thus, I can't access to google. What should I do to get out of the localhost and redirect to any external web site?

Related

Redirect the home page to a specific page in Azure

If I type e.g. https://myurl.com in the browser I want this to redirect to https://myurl.com/news.php
How can I setup Azure to make this redirection?

Azure Application Gateway External URL Rewrite

When setting up Azure application gateway external URL redirection, is it possible to rewrite, without changing the URL in browser address bar ?
If my understanding is correct, you want to access the application gateway website (usually xxx.cloudapp.net) or public IP address and redirect to an external website like www.bing.com.
It's impossible that the URL keeps displaying the xxx.cloudapp.net once redirecting to the www.bing.com. Since you have not owned the domain www.bing.com, you can not take control of an external site. Also, you use URL redirection. Certainly, the URL will redirect to another site. If the redirection URL is still the same as the original URL. Then the DNS could not resolve the redirection URL.
Application Gateway redirect overview
Hope this makes sense.

Google API using Oauth for internal company use only

I've created a web application using Node.js that relies on a google API (specifically the DCM/DFA reporting API). It redirects the user to login to their gmail account, and after a successful login redirects back to the web application.
Suddenly my company has told me that this web application needs to be restricted to internal use only, and that they won't host it on a public domain for security reasons.
Is there any way to get Oauth to redirect to the internal domain? When I try to set the redirect domain in the google developers console I get an error message that it is not valid. Is there anyway around this?
The sample redirect url you can add at Console and Code is:
http://localhost:8080/authcallback
(Remember to not add trailing / in url)

Redirect add-on website from https to http

I have 2 websites in my hosting account at bluehost. The main domain (maindomain.com) has an SSL and there is one registration page where I need to use https//www.maindomain.com.
I also have an add-on domain (addondomain.com) and am hosting the website for that in the same account. There is no necessity for a secure connection.
However, I want to make sure that if https://addonsite.com is used, it redirects to http://addonsite.com. The reason is that now if you go to https://addonsite.com, it shows that in the URL address window, but the maindomain.com website loads.
I have tried adding redirects to both .htaccess files (for maindomain.com and addondomain.com), but cannot seem to get it to work. Is it possible to do this with a main domain and add on domain if there is an SSL on the main domain?

How can I access multiple IIS sites with redirects from a mobile device?

I would like to do some tablet testing on a website I have. The website has two parts, both in separate projects.
Main site:
platform.local.samplesite.com
SSO site:
sso.local.samplesite.com
The issue:
I can access the main website remotely by ip. When redirected to the login, it tries to hit 'sso.local.samplesite.com', and cannot find that remotely, as it only knows the computer ip set to the main platform site.
General navigation would be:
Hit platform -> Get redirected to SSO site -> Sign in -> Get passed back and land on the main page of platform, all logged in
Currently I can hit the main platform site by adding a binding of HTTPS, IP Address all unassigned, using SSL certificate, and no host name. Then, from the mobile device, I hit the computer's IP address. This successfully gets me to the platform page, but then I am redirected and the tablet cannot see sso.local.samplesite.com.
Is there any way for me to have them both bound and successfully redirecting?
Would your redirect protocol on sso.local send you to the subsite once login was successful rather than redirecting back to the root site? This in theory would bypass your redirection, assuming you've set the redirection at server level bound to the domain?

Resources