LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help with http:// to https:// redirect PLEASE (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-http-to-https-redirect-please-937322/)

reaper75 03-30-2012 05:02 PM

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

j-ray 03-31-2012 04:57 AM

http://wiki.apache.org/httpd/RedirectSSL

Satyaveer Arya 03-31-2012 01:26 PM

You can checkout this guide for htaccess: http://www.javascriptkit.com/howto/htaccess.shtml, if it helps you.
Or from here for redirection from http to https: http://www.askapache.com/htaccess/ht...-redirect.html

j-ray 03-31-2012 04:57 PM

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!


All times are GMT -5. The time now is 12:27 AM.