I recommend HostForWeb.com - solved my broken link issue

Hi everyone,

Before I say this I want to declare that HostForWeb.com has great customer service. Boonex must be short handed, it takes a while if ever to get a response. If you can't find it in their forum, you may be in big trouble.

For those who get broken links it may be because you change your site from a non secure site to a secure site. From http to https with a SSL but without doing a re-write in you .htaccess file.

I was stomped and did not what the problem was, but HostForWeb.com fixed it for me and guided me to a solution. I have not applied the re-write to my .htaccess file yet, but this may help all others who have broken links and don't understand why.

Michael on hostforweb.com found the problem with the Profile button link and fixed it. It all came about because of my install using the https protocol instead of the http protocol. I purchased a SSL certificate so I applied the https to the install, but after a re-install it did not work correctly because I need to re-write the .htaccess file.

I do remember the fact that the site worked perfectly when I did the first install and then got the SSL afterwards. But when I re-installed with the SSL already in place and used the https protocol, my links got broken. So maybe, if you install and then get SSL everything falls into place, but if you get SSL first you will have to mess with the .htaccess file, not sure if that works for everyone, and not sure if someone from HostForWeb.com did some adjustments to the .htaccess file when they applied the SSL for me after my first install. It won't hurt to try and see.

This is the info that hostforweb.com found on this issue found here: (http://www.boonex.com/forums/#topic/SSL-on-Dolphin-7-0-2.htm)


The re-write instruction to the .htaccess file for SSL - https protocol below this line:

-------------------------------------------------------------------------------------
In the .htaccess file right after the line

RewriteEngine on

add the code

RewriteRule "^(pedit.php)$" - [env=whwSecure:https]
RewriteRule "^(join.php.*)$" - [env=whwSecure:https]

#Redirect to normal site.
RewriteCond %{HTTPS} on
RewriteCond %{env:whwSecure} !https
RewriteCond %{REQUEST_URI} !^.*simg.php
RewriteCond %{REQUEST_URI} !^.*tiny_mce_gzip.php
RewriteCond %{REQUEST_URI} ^.+.php [OR]
RewriteCond %{REQUEST_URI} ^.+/$
RewriteRule "^(.*)$" "http://%{HTTP_HOST}/$1" [R=301,L]

#Redirect to Secure site
RewriteCond %{HTTPS} off
RewriteCond %{env:whwSecure} https
RewriteRule "^(.*)$" "https://%{HTTP_HOST}/$1" [R=301,L]

then in the inc/header.inc.php file before the line and change "yoursite.com" with your actual site

$admin_dir = "administration";

insert the code

$aSSLURLs = array(
'/pedit.php',
'/join.php',
'/simg/simg.php',
'/plugins/tiny_mce/tiny_mce_gzip.php',
);
if(in_array($_SERVER['PHP_SELF'], $aSSLURLs)) {
$site['url'] = "https://yoursite.com/";;
}
------------------------------------
Or if you site is in a subdirectory, for example http://yoursite.com/subdir
Once again, make sure you update the URLS to your site in both header.inc.php and .htaccess

.htaccess:

RewriteRule "^(join.php)$" - [env=whwSecure:https]
RewriteRule "^(pedit.php)$" - [env=whwSecure:https]

#Redirect to normal site.
RewriteCond %{HTTPS} on
RewriteCond %{env:whwSecure} !https
RewriteCond %{REQUEST_URI} !^.*simg.php
RewriteCond %{REQUEST_URI} !^.*tiny_mce_gzip.php
RewriteCond %{REQUEST_URI} !^.*member_menu_queries.php
RewriteCond %{QUERY_STRING} !^.*simple_messenger
RewriteCond %{REQUEST_URI} ^.+.php [OR]
RewriteCond %{REQUEST_URI} ^.+/$
RewriteRule "^(.*)$" "http://%{HTTP_HOST}/subdir/$1" [R=301,L]

#Redirect to Secure site
RewriteCond %{HTTPS} off
RewriteCond %{env:whwSecure} https
RewriteRule "^(.*)$" "https://%{HTTP_HOST}/subdir/$1" [R=301,L]

header.inc.php

$aSSLURLs = array(
'/subdir/join.php',
'/subdir/pedit.php',
);

if(in_array($_SERVER['PHP_SELF'], $aSSLURLs)) {
$site['url'] = "https://yoursite.com/subdir/";;
}

----------------------------------------------------------------------------------------------

I hope this helps someone!

Quote · 7 Oct 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.