Support

Site Restoration

#11017 ref #756: restore and change url

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by nicholas on Thursday, 09 February 2012 08:48 CST

steveor
Hi Nicholas,
in ref to ticket #756: restore and change url
The hosting company has placed both domains on the same hosting account now. I followed your instructions and put the old domain name lifestylecoacbol.com in .htaccess maker. This does not appear to work, so I am missing / not understanding something.

Do I have to change lifestylecoachbol.com to lifecoachbol.com in configuration.php and any other files?

kind regards
Steve

nicholas
Akeeba Staff
Manager
You have to place your new domain name in configuration.php (the live_site parameter) as well as .htaccess Maker's "System Setup" pane, in the HTTP and HTTPS URL options.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

steveor
ok thanks, this what the .haccess file is now is this correct?
##### Redirect index.php to / -- BEGIN
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^index\.php$ http%2://www.lifestylecoachbol.com/ [R,L]
##### Redirect index.php to / -- END
##### Redirect old to new domain -- BEGIN
RewriteCond %{HTTP_HOST} ^http:\/\/www\.lifecoachbol\.com [NC]
RewriteRule (.*) http://www.lifestylecoachbol.com/$1 [R,L]
##### Redirect old to new domain -- END

nicholas
Akeeba Staff
Manager
If your new domain name is www.lifestylecoachbol.com then yes, it's correct.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

steveor
You have to place your new domain name in configuration.php (the live_site parameter) as well as .htaccess Maker's "System Setup" pane, in the HTTP and HTTPS URL options.

did that now .htaccess =

##### Redirect index.php to / -- BEGIN
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^index\.php$ http%2://www.lifecoachbol.com/ [R,L]
##### Redirect index.php to / -- END
##### Redirect old to new domain -- BEGIN
RewriteCond %{HTTP_HOST} ^http:\/\/www\.lifecoachbol\.com [NC]
RewriteRule (.*) http://www.lifecoachbol.com/$1 [R,L]
##### Redirect old to new domain -- END

nicholas
Akeeba Staff
Manager
How to tell yourself: if the domain name in the RewriteRule is your NEW domain name, then the .htaccess is correct.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

steveor
ok thanks, now when I try to load lifecoacbol.com/administrator I get
Not Found
The requested URL /administrator was not found on this server.
www.lifecoachbol.com

If I load lifestlyecoachbol/administrator I first get login page with these errors
JFTP::mkdir: Bad response
JFTP::chmod: Bad response
JFTP::mkdir: Bad response
JFTP::chmod: Bad response
then if I try to login I get
Not Found
The requested URL /administrator was not found on this server.
www.lifecoachbol.com

when I try to load lifecaochbol.com I get
Welcome to the home of lifecoachbol.com
To change this page, upload your website into the public_html directory

nicholas
Akeeba Staff
Manager
These all sound like hosting issues. Sorry, I can't help with hosting issues because I am not hosting your site. I don't even know what is your old and new domain names, if the DNS propagation has completed, how the DNS is setup and many other hosting related factors which are completely out of my control. Perhaps you should ask these questions to your host? All I can tell you is that you are now redirecting www.lifecoachbol.com to www.lifecoachbol.com which seems to not be what you want. Without further information (which is the OLD domain name and which is the NEW one), what am I supposed to do? Use my Magic 8 Ball?

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

steveor
ok, the old domain was lifestylecoachbol.com the new domain is lifecoachbol.com if you can figure out something from this it is much appreciated as `i have a very unhelpful hosting co to deal with.

nicholas
Akeeba Staff
Manager
OK, now we are getting somewhere.

First thing to make sure: both domain names (lifestylecoachbol.com and lifecoachbol.com) must point to the same hosting account and that the DNS has propagated – it can take up to 72 hours. As far as I can see from here, it seems to be true. At the very least, both domain names point to the same IP address, so they're being served by the same server. Also make sure that both domain names point to the same site root. This is something I can't check remotely :)

Next thing to do, edit your configuration.php file. Set the live_site to:
var $live_site = 'http://www.lifecoachbol.com';
 (include the http://www. part, do NOT include a trailing slash).

The third thing is slightly longer:
1. Remove your .htaccess file (delete it)
2. Go to Admin Tools, .htaccess Maker, expand the Server Settings tab and enter [code]www.lifecoachbol.com</pre> in the two URL fields. In the directory field, enter [code]/
(just a forward slash, that is)
3. On the same page, make sure "Redirect non-www to www" is set to "Non-www to www".
4. Click on Save and Create .htaccess

Your redirections should now work.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

steveor
and in the Redirect this (old) domain name to the new one field

I put the old domain www.lifestylecoachbol.com correct?

(the new domain is www.lifecoachbol.com)

steveor
screen shot attached to check I did it right

steveor
should I change these paths to lifecoachbol.com ?(the new domain)

var $log_path = '/home/lifestyl/domains/lifestylecoachbol.com/public_html/logs';
var $tmp_path = '/home/lifestyl/domains/lifestylecoachbol.com/public_html/tmp';

nicholas
Akeeba Staff
Manager
Yes, regarding the question about the "Redirect old domains" question.

No, regarding the log and tmp paths. These are not supposed to have changed. Remember, these paths are defined by your hosting account, not your domain name.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!