To view links or images in this forum your post count must be 5 or greater. You currently have 0 posts.
q1. why the hell someone would do that?
a1. if you bought some interesting domain like i do (heh heh)
To view links or images in this forum your post count must be 5 or greater. You currently have 0 posts.
and want your existing blog to be available there as well, without spending hours to move data and to give it same look-n-feel - heres your time-saving wizard. and beside that, i also dont want to lose my existing blog but i just want to avoid the hassle of re-hosting/migrating
To view links or images in this forum your post count must be 5 or greater. You currently have 0 posts.
q2. oh really?? how can I do that?
a2. here you go
<?php
$dataurl =$primaryurl =
To view links or images in this forum your post count must be 5 or greater. You currently have 0 posts.
domain
$secondaryurl =
To view links or images in this forum your post count must be 5 or greater. You currently have 0 posts.
//new domain
$path =array_keys($_GET);
if(!empty($path[0])) $dataurl = {$primaryurl}/{$path[0]};
$data = file_get_contents($dataurl);
$pattern = ~{$primaryurl}/([\d\S\/]+)~;
$data = preg_replace($pattern,{$secondaryurl}/$1″,$data);
$data = str_replace(array(<a href=\{$primaryurl},<form action=\{$secondaryurl}),array(<a href=\{$secondaryurl},<form action=\{$primaryurl}),$data);
echo $data;
?>
q3. is that all?
a3. nope, you need to modify/write .htaccess file in the root of this new domain
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} (.+)
RewriteRule ^(.*)$ index.php?$1&%{QUERY_STRING}
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1
this script will also change the urls of all your post and pagination, behaves exactly same as you have hosted your blog in this new url. only drawback is submitting a comment will take you to your original domain, but you can easily fix that but simulating a POST request using curl/stream wrapper/fopen. there is one more vital drawback which is you may lose some IP specific traffic data
have a look at my actual blog
To view links or images in this forum your post count must be 5 or greater. You currently have 0 posts.
and new one at
To view links or images in this forum your post count must be 5 or greater. You currently have 0 posts.
************************************************** ************************************************** **
Duplicating a site is not very hard, if it's a regular .php site or .html site then all you'd have to do is find a site that you like online and then use firefox. click on "File" on the upper left hand corner of your screen, scroll down and select "Save Page As". And then create a folder on your machine called "your site name" , this action will save your page as an index.html file; a folder called index_files will be automatically created and will either contain the CSS Style sheet associated with the images to that site, or just the images and template associated to that site.
I've done this with adult galleries online that I would fill with payper install galleries. I'd basically remove all the original images and replace them with zango celeb video galleries, or I'd use an adult based payper install company and then I'd drive type-in traffic from adult video networks by uploading watermarked videos. That would generate $60.00 to $70.00 dollars perday.
************************************************** ************************************************** **
There are better tools for website mirroring, such as HTTrack.
************************************************** ************************************************** **