LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-30-2012, 06:02 PM   #1
reaper75
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Arrow 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
 
Old 03-31-2012, 05:57 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 137Reputation: 137
http://wiki.apache.org/httpd/RedirectSSL
 
Old 03-31-2012, 02:26 PM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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
 
Old 03-31-2012, 05:57 PM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 137Reputation: 137
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!

Last edited by j-ray; 03-31-2012 at 05:58 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect HTTP to HTTPS: bates Linux - Server 4 10-01-2010 12:10 PM
redirect http to https nagavinodh Linux - Newbie 3 09-24-2009 09:34 AM
How to redirect http to https? Sovan Linux - Server 1 12-03-2008 02:11 PM
redirect http to https awreneau Linux - Server 17 10-14-2008 10:13 AM
redirect SquirrelMail from http to https using Apache2 cccc Linux - Server 3 09-23-2006 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration