Forum Moderators: phranque
I'm wondering what would be the best approach to deal with the updating procces in my site.
I've a site with nearly 100K pages (music lyrics related), and given that I'm often modifyng the
code (php), I dont want the users watching php-apache error codes if they try to load the pages
while I'm uploading the new files.
For that reason, I'm now using an "I'm updating my page" page, which is redirected every time a
user try to load any page wich belongs to my site (no matter if they load index.php or if they just
got the links from a Search Engine)
My main concern is what Search Engines see under these circumstances (everytime the same page
whereas there were thousand of links before).
What sort of HTML headers should I use to ask search engines they should crawl my site later?
any advice would be appreciated
regards
julian
Zero downtime.
You can use a subdomain mapped to a subdirectory for testing if you prefer.
Jim
My site is mainly a single srcipt (index.php) that generates all the stuff (~100k pages). Search engines have a lot of different links (not 100k yet cause it is a new one) to my site cause I use rewrites everywhere, but in the server is all back index.php.
I guess I would take the path of either doing a 503 unavailable, or a redirect to a backup site while I upgrade (it's going to take me some time to figure out whether it is possible or not, I often modify the database structure, and therefore the previous version wouldnt work as expected)
anyway many thanks to everyone
regards
julian
I create a new directory
/website_year_month_day
and upload the whole data. Then I login to the configuration menu of my hosting package and switch the directory for the domain and point it to the new directory.
I leave the old data up for some time so if I notice after a few hours that something went badly wrong with my update I simply switch back to the old version.