If a user types (http://www.espncricinfo.com/) I want to redirect the user to (http://abc.com). If the user type (https://askubuntu.com) I want to redirect the user to (http://abc.com).
16.04 apache2
New contributor
Tajul Islam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
If a user types (http://www.espncricinfo.com/) I want to redirect the user to (http://abc.com). If the user type (https://askubuntu.com) I want to redirect the user to (http://abc.com).
16.04 apache2
New contributor
Tajul Islam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm not possible to do withHTTPS
, you will always have certificate problems on a user's browser. And instead of getting redirected, they will see an error page in their browser that the certificate is invalid for that domain.
– Dan
2 hours ago
add a comment |
If a user types (http://www.espncricinfo.com/) I want to redirect the user to (http://abc.com). If the user type (https://askubuntu.com) I want to redirect the user to (http://abc.com).
16.04 apache2
New contributor
Tajul Islam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
If a user types (http://www.espncricinfo.com/) I want to redirect the user to (http://abc.com). If the user type (https://askubuntu.com) I want to redirect the user to (http://abc.com).
16.04 apache2
16.04 apache2
New contributor
Tajul Islam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Tajul Islam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 49 mins ago
Dan
7,16534573
7,16534573
New contributor
Tajul Islam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 3 hours ago


Tajul IslamTajul Islam
1
1
New contributor
Tajul Islam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Tajul Islam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Tajul Islam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm not possible to do withHTTPS
, you will always have certificate problems on a user's browser. And instead of getting redirected, they will see an error page in their browser that the certificate is invalid for that domain.
– Dan
2 hours ago
add a comment |
I'm not possible to do withHTTPS
, you will always have certificate problems on a user's browser. And instead of getting redirected, they will see an error page in their browser that the certificate is invalid for that domain.
– Dan
2 hours ago
I'm not possible to do with
HTTPS
, you will always have certificate problems on a user's browser. And instead of getting redirected, they will see an error page in their browser that the certificate is invalid for that domain.– Dan
2 hours ago
I'm not possible to do with
HTTPS
, you will always have certificate problems on a user's browser. And instead of getting redirected, they will see an error page in their browser that the certificate is invalid for that domain.– Dan
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
Such a redirection would need to be done at your router/access point, and if you're just using a standard SOHO router, it's probably not viable to do so. What you need to do is set up port forwarding from the internal interface on your router (your LAN) to a specific host (your server) on ports 80 (http) and 443 (https).
If you're only concerned with doing this on your wireless and you have a separate access point, you should be able to plug your access point into your server and send traffic from the wifi network through your server. If you don't want the wireless hosts to have internet access, then this is all you really need to do. If you do want them to have internet access, you'll also need to set up iptables or a similar utility to perform NAT for these hosts over to your main network.
Are you sure it will work with HTTPS? You will need to spoof the certificates somehow in order for the browser to accept the redirection response (or any kind of response).
– Dan
2 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Tajul Islam is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126588%2fhow-can-i-redirect-any-url-whether-it-starts-with-http-or-https-into-particular%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Such a redirection would need to be done at your router/access point, and if you're just using a standard SOHO router, it's probably not viable to do so. What you need to do is set up port forwarding from the internal interface on your router (your LAN) to a specific host (your server) on ports 80 (http) and 443 (https).
If you're only concerned with doing this on your wireless and you have a separate access point, you should be able to plug your access point into your server and send traffic from the wifi network through your server. If you don't want the wireless hosts to have internet access, then this is all you really need to do. If you do want them to have internet access, you'll also need to set up iptables or a similar utility to perform NAT for these hosts over to your main network.
Are you sure it will work with HTTPS? You will need to spoof the certificates somehow in order for the browser to accept the redirection response (or any kind of response).
– Dan
2 hours ago
add a comment |
Such a redirection would need to be done at your router/access point, and if you're just using a standard SOHO router, it's probably not viable to do so. What you need to do is set up port forwarding from the internal interface on your router (your LAN) to a specific host (your server) on ports 80 (http) and 443 (https).
If you're only concerned with doing this on your wireless and you have a separate access point, you should be able to plug your access point into your server and send traffic from the wifi network through your server. If you don't want the wireless hosts to have internet access, then this is all you really need to do. If you do want them to have internet access, you'll also need to set up iptables or a similar utility to perform NAT for these hosts over to your main network.
Are you sure it will work with HTTPS? You will need to spoof the certificates somehow in order for the browser to accept the redirection response (or any kind of response).
– Dan
2 hours ago
add a comment |
Such a redirection would need to be done at your router/access point, and if you're just using a standard SOHO router, it's probably not viable to do so. What you need to do is set up port forwarding from the internal interface on your router (your LAN) to a specific host (your server) on ports 80 (http) and 443 (https).
If you're only concerned with doing this on your wireless and you have a separate access point, you should be able to plug your access point into your server and send traffic from the wifi network through your server. If you don't want the wireless hosts to have internet access, then this is all you really need to do. If you do want them to have internet access, you'll also need to set up iptables or a similar utility to perform NAT for these hosts over to your main network.
Such a redirection would need to be done at your router/access point, and if you're just using a standard SOHO router, it's probably not viable to do so. What you need to do is set up port forwarding from the internal interface on your router (your LAN) to a specific host (your server) on ports 80 (http) and 443 (https).
If you're only concerned with doing this on your wireless and you have a separate access point, you should be able to plug your access point into your server and send traffic from the wifi network through your server. If you don't want the wireless hosts to have internet access, then this is all you really need to do. If you do want them to have internet access, you'll also need to set up iptables or a similar utility to perform NAT for these hosts over to your main network.
answered 2 hours ago


MintyMinty
88328
88328
Are you sure it will work with HTTPS? You will need to spoof the certificates somehow in order for the browser to accept the redirection response (or any kind of response).
– Dan
2 hours ago
add a comment |
Are you sure it will work with HTTPS? You will need to spoof the certificates somehow in order for the browser to accept the redirection response (or any kind of response).
– Dan
2 hours ago
Are you sure it will work with HTTPS? You will need to spoof the certificates somehow in order for the browser to accept the redirection response (or any kind of response).
– Dan
2 hours ago
Are you sure it will work with HTTPS? You will need to spoof the certificates somehow in order for the browser to accept the redirection response (or any kind of response).
– Dan
2 hours ago
add a comment |
Tajul Islam is a new contributor. Be nice, and check out our Code of Conduct.
Tajul Islam is a new contributor. Be nice, and check out our Code of Conduct.
Tajul Islam is a new contributor. Be nice, and check out our Code of Conduct.
Tajul Islam is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126588%2fhow-can-i-redirect-any-url-whether-it-starts-with-http-or-https-into-particular%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I'm not possible to do with
HTTPS
, you will always have certificate problems on a user's browser. And instead of getting redirected, they will see an error page in their browser that the certificate is invalid for that domain.– Dan
2 hours ago