Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I redirect a page to wwwx or to a secure server?

page redirect Secure server
0
Posted

How can I redirect a page to wwwx or to a secure server?

0

There are times when you want to redirect a web page to the wwwx server from the www server. There are also times when you want to redirect your page to a secure https server if it is being accessed by the non secure http server. For example, you may want to run an index.php page out of your home directory. As described in question 8, you can only run PHP on the wwwx server. You want to advertise your home page as http://www.cs.unc.edu/~userid, and you need to redirect to http://wwwx.cs.unc.edu/~userid which will allow you to run PHP. Add the following to the .htaccess file in your public_html directory: RedirectMatch (.*)$ http://wwwx.cs.unc.edu$1 Computer Services runs 4 web servers: http://www.cs.unc.edu/ https://www.cs.unc.edu/ http://wwwx.cs.unc.edu/ https://wwwx.cs.unc.edu/ Each web server has several “Define” variable associated with it that you can use to test that you are on that server. If you are not on that server then you redirect the URL to th

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123