Godaddy redirect of initial URL to SSL protected URL

Discussion regarding Joomla! 1.5 security issues.
Joomla! Vulnerable Extensions: http://feeds.joomla.org/JoomlaSecurityV ... Extensions

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security Checklist
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
Frankd4
Joomla! Explorer
Joomla! Explorer
Posts: 284
Joined: Tue Aug 14, 2007 11:21 pm
Contact:

Godaddy redirect of initial URL to SSL protected URL

Post by Frankd4 » Tue Oct 16, 2007 6:02 pm

I am using 1.5 CR2. I have Godaddy hosting and an SSL certificate for my site. I wish users who come to my homepage http://mysite.com to be automatically and transparently redirected to the secure URL https://mysite.com. I have tried forwarding the domain and have been told by Godaddy that I need to install a redirect script. The existing posts on this topic assume more knowledge than I have. I have looked at the htaccess file and have no idea how to modify this or where to place any redirect script that I locate.
1. Is there an easy fix?
2. Where do I find a redirect script that does what I want?
3. Where and how would I insert this script?
Thanks in advance for your help on this.
Last edited by Frankd4 on Wed Oct 17, 2007 8:23 pm, edited 1 time in total.
I may not be very good, but at least I'm not too fast.
---------------------------------------------------------------------------------

quiquedcode
Joomla! Ace
Joomla! Ace
Posts: 1384
Joined: Thu Aug 18, 2005 10:11 pm
Location: San Juan - Argentina
Contact:

Re: Godaddy redirect of initial URL to SSL protected URL

Post by quiquedcode » Wed Oct 17, 2007 1:54 am

Try this code in a ".htaccess" file (without quotes) in the root of your joomla website

Code: Select all

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) https://www.mysite.com/$1 [R=301,L]
@kabeza
Freelance Joomla/CodeIgniter Developer
Home: http://www.beza.com.ar

User avatar
Frankd4
Joomla! Explorer
Joomla! Explorer
Posts: 284
Joined: Tue Aug 14, 2007 11:21 pm
Contact:

Re: Godaddy redirect of initial URL to SSL protected URL

Post by Frankd4 » Wed Oct 17, 2007 4:24 am

Thank you this is what I needed. However, as my beginning url http://mysite.com and the secure URL I am redirecting to: https://mysite.com are the same.  Thus this code results in a loop error. Is there a way I can stop the process after a single iteration? Clearly, I'm new at this and I sure appreciate your help.
Last edited by Frankd4 on Wed Oct 17, 2007 4:50 am, edited 1 time in total.
I may not be very good, but at least I'm not too fast.
---------------------------------------------------------------------------------

User avatar
Frankd4
Joomla! Explorer
Joomla! Explorer
Posts: 284
Joined: Tue Aug 14, 2007 11:21 pm
Contact:

Re: Godaddy redirect of initial URL to SSL protected URL Solved!

Post by Frankd4 » Wed Oct 17, 2007 5:35 am

This script solved my problem. This redirects all requests for accesss to my site to the HTTPS:// server.

I got this code from http://www.askapache.com/htaccess/ssl-e ... p-to-https

SSLOptions +StrictRequire
SSLRequireSSL
SSLRequire %{HTTP_HOST} eq "askapache.com"
ErrorDocument 403 https://askapache.com
I may not be very good, but at least I'm not too fast.
---------------------------------------------------------------------------------

User avatar
humvee
Joomla! Master
Joomla! Master
Posts: 14704
Joined: Wed Aug 17, 2005 10:27 pm
Location: Kent, England

Re: Godaddy redirect of initial URL to SSL protected URL

Post by humvee » Wed Oct 17, 2007 10:57 am

Frankd4

Thanks for posting your resolution and glad it is working for you.

Please mark your first post as solved by changing the Message icon to Solved (little green tick in circle added to display)

Thanks

Andy


Locked

Return to “Security in Joomla! 1.5”