Senin, 18 Maret 2019

How can I Redirect any URL whether it starts with http or https into particular url (abc.com) when user is...





















0






























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).

















share|improve this question


















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 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


































0






























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).

















share|improve this question


















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 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






























0






















0














0


1










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).

















share|improve this question


















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










share|improve this question


















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.



















share|improve this question


















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.















share|improve this question





share|improve this question










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 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
































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





















1 Answer

1











active



oldest



votes





































0




























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.









share|improve this answer















































  • 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






















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.




















draft saved


draft discarded



































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

















0




























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.









share|improve this answer















































  • 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






























0




























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.









share|improve this answer















































  • 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


























0






















0














0










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.









share|improve this answer
























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.









share|improve this answer





















share|improve this answer



share|improve this answer














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



































  • 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

















Tajul Islam is a new contributor. Be nice, and check out our Code of Conduct.




















draft saved


draft discarded

































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.





draft saved


draft discarded



















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















































































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









How can I Redirect any URL whether it starts with http or https into particular url (abc.com) when user is... Rating: 4.5 Diposkan Oleh: Admin

0 komentar:

Posting Komentar

Popular Posts