How to redirect a user to another page with the help of jQuery.
When you want to redirect the users, it is not necessary to use jQuery. You can employ window.location.replace() instead. It will be the best solution to simulate an HTTP redirect.
Example :
// similar behavior as an HTTP redirect
window.location.replace("http://example.com");
// similar behavior as clicking on a link
window.location.href = "http://example.com";
Otherwise with jQuery, you can use this solution :
$(location).attr('href', 'http://example.com')
Note: Commissions may be earned from the links above.
This page contains references to products from one or more of our advertisers. We may receive compensation when you click on links to those products. For an explanation of our advertising policy, please visit this page.
In order to redirect properly http to default conf file when you have enabled SSL, you need to set both port 80 and port 443 in your conf file.
And ...
You have recently added several websites in Apache, through their configuration files. However you can observe that the server ip is now redirecting ...