I have tried one small script helped me out which was made to pull the content on www.widgetname.com from www.my-main-domain.com/widgetname and it worked great for the index page of www.widgetname.com, but if I go to any other pages on www.widgetname.com, its pulled from www.widgetname.com, so what can I do to make the sub pages also pull from www.my-main-domain.com/widgetname?
----code sample---
<?php
$url = "http://www.my-main-domain.com/widgetname";
if ($fp = fopen($url, "r")) {
while ($buf = fread($fp, 8192))
print $buf;
fclose($fp);
} else {
print("Cannot retrieve $url\n");
}
?>
Please help. Thanks
[blue-widgets.com...]
to redirect to
[mywidgets.com...]
?
If so, I think you want to look at Apache's mod_rewrite, and either a simple transformation (where all domains are the same form) or a RewriteMap
I suppose it could be done in PHP with a case statement, as you say, though it seems like an expensive way to to it.
Sean
does this make sense? Basically, I just want an easy way to make modifications to 200+ domains (exact sites, just different state names, example, Alabama Widgets) without having to ftp into every site, so I thought the best way would be to load all the fresh content on one server with 200+ sub directories and and have the individual domains read from the respective subdirectories on the main server, but actually have real links on that server, eg: [blue-widgets.com...] index3.htm etc. or is there a better way of doing this?