Domain Move & Url Change

Domain Move & Url Change

Postby Apache on Tue May 11, 2010 4:15 am

Hi there .. somewhat of a tricky problem ...(at least for me...) .. hoping somebody has an idea..

Issue is .. moving the domain of the current LT Install to a new (re-launch)server to which LT has already been migrated to while, at the same time, avoiding that users bookmarks, google listings etc. will be reachable before the new site is all ready to go...

Sounds complicated? Well .. stept by step...:

Articles on the current live site have urls like
http://www.mydomain.de/blog/index.php?o ... 1&blogId=1

Already migrated articles on the new server have urls with IP Address like
http://123.456.789.000/websitefolder/bl ... 1&blogId=1

Now I need/want to close the old server/site for 1 or 2 weeks before launching the new site in order to test and setup things properly first, for which I have to transfer mydomain.de to the new server. Once I do this, however, even if I put an "under constuction" page as index the url's for all articles turn into valid urls again and folks would be able to access the articles even though the homepage is "under construction".

Therefore, I need to somehow change all links so that folks will get a 404 redirecting to the new (under construction) page.

As far as I am concerned three ways to approach, two of which I am not sure about .. the third not a desired solution at all...

1. Changing the path in some other way than option 3 (Not sure how I could do)

2. Changing to search engine friendly urls (but that will not change/update old articles urls... will it??????)

3. Changing the root folder of LT on the new server from blog/ to whatever/ (This is absolutely not desired as it most likely screw up tons of code we have done apart from LT code)

So .. any ideas on how to tackle this problem would be highly appreciated....

:?
Apache
 
Posts: 64
Joined: Tue Aug 30, 2005 10:00 am

Re: Domain Move & Url Change

Postby marcotics on Tue May 11, 2010 12:27 pm

First thing that comes to mind is a . htaccess 301 redirect, wich is a permanent redirect for both users (browsers) and search engines.
It should redirect both user and search engine friendly, leading http://www.old-domain.com/path/file.php directly to http://www.new-domain.com/path/file.php.

Googleing it deliveres lot's of sites explaining it, so try searching for it, if the following page does not explain it in your language or particular case.
http://www.affiliatebeginnersguide.com/domains/redirection.html

Hope it helps :)
marcotics
 
Posts: 42
Joined: Wed Mar 17, 2010 1:02 pm
LifeType Version: 1.2.11

Re: Domain Move & Url Change

Postby jondaley on Tue May 11, 2010 1:04 pm

I think you are asking for a simple "maintenance" mode?

This is what I have done in the past. It allows me in, but no one else, no matter what the URL is.

Code: Select all
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/maintenance.html
RewriteCond %{REMOTE_HOST} !orange.limedaley.com
RewriteRule (.*) /maintenance.html [L]


And then once your maintenance period is over, you can do a 301 rewrite like marcotics says.

(by the way, your email address is incorrect in the forum profile; it is bouncing).
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch


Return to Other Problems

cron