redirect

can anyone please tell me what to do , i am trying to redirect my site to my url from 6.1.6 but i don't know how to do it , www.madelu.com ( 6.1.6 ) and now it is www.madelu.com/dolphin7

THANK

Quote · 29 Jan 2010

can anyone please tell me what to do , i am trying to redirect my site to my url from 6.1.6 but i don't know how to do it , www.madelu.com ( 6.1.6 ) and now it is www.madelu.com/dolphin7

THANK

go into the inc folder and you will see a header file   inc/header.inc.php

you need to edit that file. find this:

$site['url']               = "your site here";            change this to the site you want to redirect to

also find

$dir['root']               = "/home6/bbpinpal/public_html/blackberrypinpal/";            and change that part as well

Quote · 29 Jan 2010

or you could go into your cpanel and add a redir there.

Quote · 29 Jan 2010

THANK YOU VERY MUCH

Quote · 29 Jan 2010

Did that work for ya

Quote · 29 Jan 2010

$dir['root']               = "/home6/bbpinpal/public_html/blackberrypinpal/";

if i change this one i get blanc page

Quote · 29 Jan 2010

Using a .htaccess file, have all requests for the old address be pointed to the new one. Add the following to a .htaccess file and place it at the root of your web server:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Replace the domain information with your domain name and the new directory on your web server.

Also, undo your changes to the header.inc.php file, as this is not the way to redirect your web site.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 29 Jan 2010

I was going to comment on this earlier, but I was too curious to find out how that bizarre "redirect" worked out.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 29 Jan 2010

hello Magnussoft thank you for your help.
i followed your instructions and undid the previous changes but now i'm getting a weird Firefox error that says:

The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete.


could someone please tell me what i am doing wrong?
if anyone wants to, you can see the error here: http://www.madelu.com
thank you

Quote · 29 Jan 2010

Your $site['url']  is set to http://www.madelu.com in http://www.madelu.com/dolphin7/inc/header.inc.php which will put the redirect in an endless loop.

$site['url'] should be http://www.madelu.com/dolphin7

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 29 Jan 2010

Your $site['url']  is set to http://www.madelu.com in http://www.madelu.com/dolphin7/inc/header.inc.php which will put the redirect in an endless loop.

$site['url'] should be http://www.madelu.com/dolphin7

thank you for your help houstonlively.

i hope you don't mind but i have a question.

when i go to my header.inc.php file, it already shows me this without editing something:


$site['ver']               = '7.0';
$site['build']             = '0';
$site['url']               = "http://www.madelu.com/Dolphin7/";

am i looking on the wrong place now?

Quote · 29 Jan 2010

Your $site['url']  is set to http://www.madelu.com in http://www.madelu.com/dolphin7/inc/header.inc.php which will put the redirect in an endless loop.

$site['url'] should be http://www.madelu.com/dolphin7

thank you for your help houstonlively.

i hope you don't mind but i have a question.

when i go to my header.inc.php file, it already shows me this without editing something:


$site['ver']               = '7.0';
$site['build']             = '0';
$site['url']               = "http://www.madelu.com/Dolphin7/";

am i looking on the wrong place now?

you wanna go into the other inc file of your existing dolphin.

Quote · 29 Jan 2010

can anyone please tell me what to do , i am trying to redirect my site to my url from 6.1.6 but i don't know how to do it , www.madelu.com ( 6.1.6 ) and now it is www.madelu.com/dolphin7

THANK

is this an upgrade from 6 to 7?

Quote · 29 Jan 2010

Using a .htaccess file, have all requests for the old address be pointed to the new one. Add the following to a .htaccess file and place it at the root of your web server:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Replace the domain information with your domain name and the new directory on your web server.

Also, undo your changes to the header.inc.php file, as this is not the way to redirect your web site.

This will do it for you, your code on the new .htaccess file will be

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.madelu.com/dolphin7/$1 [R=301,L]

---------

If you have installed Dol.6.1.6 be sure you rename the .htaccess you have ther then upload the new .htaccess file to public_html,

(I assum you have Dol.6.1.6 installed on public_html and not on sub folder)

Quote · 29 Jan 2010

You don't need to modify any D7 code, just create or replace index.php using any php editor and copy it into your host root,

mostly is /public_html/. The index.php will include these three lines.

<?php
header( 'Location: http://www.madelu.com/dolphin7/index.php' );
?>

If there is a file named default.html under /public_html/, rename it or copy to save and delete it.

Quote · 30 Jan 2010

can anyone please tell me what to do , i am trying to redirect my site to my url from 6.1.6 but i don't know how to do it , www.madelu.com ( 6.1.6 ) and now it is www.madelu.com/dolphin7

THANK

is this an upgrade from 6 to 7?

yes it is Frown

Quote · 31 Jan 2010

Using a .htaccess file, have all requests for the old address be pointed to the new one. Add the following to a .htaccess file and place it at the root of your web server:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Replace the domain information with your domain name and the new directory on your web server.

Also, undo your changes to the header.inc.php file, as this is not the way to redirect your web site.

This will do it for you, your code on the new .htaccess file will be

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.madelu.com/dolphin7/$1 [R=301,L]

---------

If you have installed Dol.6.1.6 be sure you rename the .htaccess you have ther then upload the new .htaccess file to public_html,

(I assum you have Dol.6.1.6 installed on public_html and not on sub folder)

i did this but when i do it, i always get the firefox error

Quote · 31 Jan 2010

You don't need to modify any D7 code, just create or replace index.php using any php editor and copy it into your host root,

mostly is /public_html/. The index.php will include these three lines.

<?php
header( 'Location: http://www.madelu.com/dolphin7/index.php' );
?>

If there is a file named default.html under /public_html/, rename it or copy to save and delete it.

i found an index.php file in both my dolphin 6 and dolphin 7, but i'm afraid i don't have those 3 lines.

when i add them to any of the index.php files, i only get a blank page

i do not have a default.html file


seems like it is more difficult then i thought, but i would like to thank everyone for trying to help me!

it is much appreciated!

Quote · 31 Jan 2010

can anyone please tell me what to do , i am trying to redirect my site to my url from 6.1.6 but i don't know how to do it , www.madelu.com ( 6.1.6 ) and now it is www.madelu.com/dolphin7

THANK

why not make changes to the domain to point to /dolphin7   dir.     and not root

Quote · 31 Jan 2010

Why not just swap the 2 locations and update the script. Then no need for redirects, google will still like you in a short amount of time it will find all your new links.

Redirecting is alright, but a little more thinking and managing involved for permanent.

Either way is not a big deal, but for most it seems to be more logical to have the most up to date script/version in the main directory/folder rather than a subfolder/sudirectory. Unless you are shooting for subfolders of the script.

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 31 Jan 2010

Brana:

Don't touch any index.php files under dolphin 6 and dolphin 7.

Just create the one index.php as I pointed and copy it to your host account root, such as /public_html/,

not your d6 or d7 root. When you open your site, this new created index.php under /public_html/ will be called

and then reroute to dolphin 7.

Quote · 1 Feb 2010

I think Brana has already got enough bad advice. Your index.php "solution" only works if  the entry point is the site's web root. Any other entry point won't get redirected.

I'll second gameutopia's suggestion of moving the main site to the web root, and putting the other in a subdirectory until it's no longer needed.   It makes the most sense.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 1 Feb 2010
 
 
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.