LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05: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, 04:57 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

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

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, 04:57 PM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
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 04:58 PM.
 
  


Reply



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 11:10 AM
redirect http to https nagavinodh Linux - Newbie 3 09-24-2009 08:34 AM
How to redirect http to https? Sovan Linux - Server 1 12-03-2008 01:11 PM
redirect http to https awreneau Linux - Server 17 10-14-2008 09:13 AM
redirect SquirrelMail from http to https using Apache2 cccc Linux - Server 3 09-23-2006 10:02 AM

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

All times are GMT -5. The time now is 03:41 PM.

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
Open Source Consulting | Domain Registration