Posts Tagged ‘another’

Replicate package selection from one Ubuntu install to another clean one

Saturday, September 19th, 2009

To replicate your packages selection on another machine (or restore it if re-installing),
You can type:
$ aptitude –display-format ‘%p’ search ‘?installed!?automatic’ >~/my-packages Move the file “my-packages” to the other machine, and there type:$ sudo xargs aptitude –schedule-only install < my-packages ; sudo aptitude installIt might be interesting for you to always check the automate commandEND—–

Redirect a website after moving it from one server to another in a Google friendly way

Saturday, September 26th, 2009

I had the task to physically move a website from one host to another while doing it thebest SEO way possible.
Here is how I did it:
I used mod_rewrite and the following .htaccess rules like:redirect 301 /index.html http://new-location.com/index.htmlredirect 301 /somepage.html http://new-location.com/somathing.htmlFrom Search Engine point of view it is best to create a custom redirectfor every webpage available on the old location of the website to the new one.
END—–