Need help with http:// to https:// redirect PLEASE
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need help with http:// to https:// redirect PLEASE
I have seen plenty of random answers about editing the .htacess file or httpd.conf, but I need step by step instructions on how to do this. How to get there through SSH? How to edit? Which method is best? I want to redirect my domain so that when anyone types it in (no www)or www.domain.net in, it redirects to the https:// version. Certificate is installed and working. Sorry I lost almost all my Linux knowledge about 7 yrs ago. Now I have a hosted VDS with godaddy and they told me the same thing. I have no idea on how to get there or edit it. I have puTTy, Coreftp Pro, and WinSCP. Anyone? This thing is driving me crazy.....Thanks for any and all help (I don't wanna' kill anything and have to restart my server. Thanks again
Some of your questions havn't been answered yet.
With puTTy you can establish an ssh connection to the server. It will ask you for the server's name and the user/password. To change settings of the web server you have to login as root, probably.
After successful login you can
cd /path/to/docroot
The /path/to... can be anything, we don't know, maybe /var/www
An answer to where to find the docroot is in httpd.conf, maybe in /etc/apache2/ ?
If you've found the file you can edit it with
vi /path/filename
But it will take a while to get used to vi or emacs... Read tutorials, good luck!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.