The dolphin script has http:// links that do not convert to https:// when configuring a site to https:// . I would like to find an automatic converter for these http:// links within dolphin to allow the https:// stay locked
Yes I know I could do a manual conversion, however that takes hours to find all the http:// links that didn't convert over when I setup my site.
If anyone has a solution please help me.
Thanks.
|
Well, As I see it you have one of three options. And your trying to look for option 1, I'd recommend Option 3.
- Find some application/script that will hunt down and replace all instances of http:// with https:// in all dolphin files and SQL tables. This can have the side effects of breaking other links to other sites, as well as messing up potentially hard-coded links. However, you could do this with a recursive search and replace (for the files at least) in something like Dreamweaver (which I don't use anymore, but it was good at this).
- You could search and replace manually, (well, manually replace, but use programs to search), this is the most painstaking method, but usually works well if you know what you are doing.
- You could insert a conditional redirect in your header file. By modifying the existing redirect, where if it notices http:// in the get url, it redirects to the SAME URL with https://
As for how to do #3, you could potentially spend as much time looking for/developing, testing, and finally implementing the code if your not a seasoned PHP dev, but even then, you'd learn more, and be less bored with it.
Hope that helps.
|
I get lost with Dreamweaver and have done allot by hand work, but this time I'm hoping to find an auto converter to convert http:// to https://
I have more than a dozen sites online and really don't have time to convert the http:// to https:// . Another thing that would help is with dolphin where does the index page begin in the directory?
It appears that is one of my major issues starts, and the rest I'll take one step at a time.
|
Seems like I had a similar problem... my site is setup for https but some of the links in Dolphin 7 are hardcoded to http. I decided to install a plugin for Chrome called SaferChrome that analyzes each page's SSL connection issues. With it I could find problem links that I needed to convert to https. Once I knew what the hardcoded links were, I used Dreamweaver's "Find & Replace" to track down all code with links for the same URL. The whole process didn't take very long... going through the main site pages typically resolved issues everywhere on the site... due to the common code base and template setup. As I remember it, there were not very many changes... typically had to do with links to sites like Adobe (Flash). http://pkforum.dolphinhelp.com |
Does someone have a version that has been already transformed to work with https? Everyday is a new beginning. |
could you set a line in your htaccess to for all http to be changed to https?
On an old non dolphin site i did, i set all requests for http://mydomain.com/members to change to https://mydomain.com/members
EDIT
I pulled this out of my old htaccess file - hope it helps:
RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} Directory RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
caredesign.net |
If you want to get all the code, try this. It's a shell script.
Test this on your DEVELOPMENT site 1st!!!! And have a backup.
#!/bin/bash # ***************************************************************************************** # find_and_replace_in_files.sh # This script does a recursive, case sensitive directory search and replace of files # To make a case insensitive search replace, use the -i switch in the grep call # uses a startdirectory parameter so that you can run it outside of specified directory - else this script will modify itself! # *****************************************************************************************
# **************** Change Variables Here ************ startdirectory="." searchterm="http://" replaceterm="https://" # **********************************************************
echo "******************************************" echo "* Search and Replace in Files Version .1 *" echo "******************************************"
for file in $(grep -l -R $searchterm $startdirectory) do sed -e "s/$searchterm/$replaceterm/ig" $file > /tmp/tempfile.tmp mv /tmp/tempfile.tmp $file echo "Modified: " $file done
echo " *** Yay! All Done! *** "
http://www.mytikibar.com |
Yes...
I changed the header.inc.php file:
$site['url'] = "https://www.mysite.com/";
Does someone have a version that has been already transformed to work with https?
Csampson |
Yes...
I changed the header.inc.php file:
$site['url'] = "https://www.mysite.com/";
Does someone have a version that has been already transformed to work with https?
Is that all that is needed? I thought some said there were hard-coded "http://" in the code. If that is not true then please state that it is not true.
Geeks, making the world a better place |
The reason they think that, I think, it is hard coded is because of that setting. I am not sure about that as they spend more time looking at the code than I do. ALL I can tell you is when I setup my site from day one to be https I had to change that and the other pages NEVER conflicted and I have yet to see a http:// page and all my media pages work quite well. ONCE again this topic is like hens teeth and after I spent a week looking for every possible article on it and I posted in them all. The large majority were guess's until I was already done and then they confirmed what I did with the post. If you are going to do this I suggest you see the threads I was associated with on this subject.
MY major concern was speed which has not been comprised whatsoever. There are numerous posts warning against it and saying it is overkill and I could not disagree more. The more people get taken advantage of online the more and more they will only come off that wallet with a https site. I also am still in the process to give blood to prove I deserve a EVO SSL ;) The IRS only needs what has been given but apparently an EVO needs even more. I had to add that business to my cell phone number...GRRR
Anyway i think the https was much easier than is portrayed here. I am sorry but my total recall about the process is a bit fussy but I do remember a post by me saying thanks pal where were you a week ago because he explained it quite well. ALSO anyone who questions doing this ask them this simple question that is quite revealing: Have you done it?
Csampson |