B
bazing
Guest
I just migrated over 200 domains from Plesk 2.5 to Plesk 8.0 using the Migration Manager.
Once the domains were moved over, I noticed that the Migration Manager created the default skeleton directories and files (i.e. css dir, test dir, img dir, index.html, etc.).
We will now have to remove all the domains, upload a new skeleton (with nothing in it), migrate again, then restore the default skeleton (or create our own).
My suggstion: don't create any extra files when migrating, or allow the migrator to opt 'yes' or 'no'
If I screwed something up and could have migrated without creating these extra files/dirs, please advise!
--
FYI: If someone is going to create a custom skeleton to show the name of the domain is being hosted by "your company", try the following:
If allow PHP in your hosting:
1. create index.php
2. add the following PHP code:
- to show only domain.tld (without www.): <?php echo str_replace('www.', '', $_SERVER['SERVER_NAME']) ?>
- to show whatever the visitor browses to: <?php echo $_SERVER['SERVER_NAME']) ?>
If only allowing .html files, use JavaScript:
Once the domains were moved over, I noticed that the Migration Manager created the default skeleton directories and files (i.e. css dir, test dir, img dir, index.html, etc.).
We will now have to remove all the domains, upload a new skeleton (with nothing in it), migrate again, then restore the default skeleton (or create our own).
My suggstion: don't create any extra files when migrating, or allow the migrator to opt 'yes' or 'no'
If I screwed something up and could have migrated without creating these extra files/dirs, please advise!
--
FYI: If someone is going to create a custom skeleton to show the name of the domain is being hosted by "your company", try the following:
If allow PHP in your hosting:
1. create index.php
2. add the following PHP code:
- to show only domain.tld (without www.): <?php echo str_replace('www.', '', $_SERVER['SERVER_NAME']) ?>
- to show whatever the visitor browses to: <?php echo $_SERVER['SERVER_NAME']) ?>
If only allowing .html files, use JavaScript:
Code:
<script type="text/javascript">
// if visitor browses to [url]www.domain.tld[/url]
// and you don't want the [url]www.[/url] shown, set to 'no'
var keep_www = '';
// leave the rest
var url = location.href;
// clean up http: and slashes "/"
url = url.replace('http:', '');
url = url.replace('//', '');
url = url.replace('/', '');
if (keep_www != 'yes') url = url.replace('www.', '');
document.write(url);
</script>