earth-friendly
07-24-2009, 03:02 PM
Hi. I'm getting ready to release my new oscmax site. I have a very old site that I've been using. We've designed a new homepage that goes with the new site. I want it to be integrated into the oscmax site, so that it gets the header and boxes that are on the rest of the site. So I created a new file for the catalog directory, homepage.php, and a new template file, homepage.tpl.php, in the appropriate templates directory.
So, here's my concern. The new homepage is currently in
http://www.mysite.com/catalog/homepage.php.
But, I want people to be able to go to http://www.mysite.com or http://www.mysite.com/index.html and end up on the new homepage.
I think I need to either redirect from index.html to http://www.mysite.com/catalog/homepage.php or somehow store my homepage.php in index.html rather than in catalog/homepage.php.
I just tried to move catalog/homepage.php to index.html. It's a very short file:
<code>
<?php
$contentname = "homepage";
require('catalog/includes/application_top.php');
$content = $contentname . ".php";
$content_template = $contentname . ".tpl.php";
include (bts_select('main', $content_template)); // BTSv1.5
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
</code>
but this didn't work. It looks like there are some relative links in includes/application_top.php, for loading includes/configure.php, so this blew up.
Is there a good way of having the homepage in my www root directory like this, or should I do a redirect instead?
My concern with doing a redirect is, what is the right way to do this, for the search engines? Would doing a 301 redirect from the .htaccess file be appropriate for this case?
I think using .htaccess to do a 301 redirect is the best way to redirect for all the old pages that now have new versions in the oscmax site. But is it the best solution, for redirecting from the index.html to the catalog/homepage.php page?
Thanks in advance for any suggestions with this. I do have some good page rankings for my current site, and I'd hate to lose that when I upgrade to my new, wonderful oscmax site!
So, here's my concern. The new homepage is currently in
http://www.mysite.com/catalog/homepage.php.
But, I want people to be able to go to http://www.mysite.com or http://www.mysite.com/index.html and end up on the new homepage.
I think I need to either redirect from index.html to http://www.mysite.com/catalog/homepage.php or somehow store my homepage.php in index.html rather than in catalog/homepage.php.
I just tried to move catalog/homepage.php to index.html. It's a very short file:
<code>
<?php
$contentname = "homepage";
require('catalog/includes/application_top.php');
$content = $contentname . ".php";
$content_template = $contentname . ".tpl.php";
include (bts_select('main', $content_template)); // BTSv1.5
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
</code>
but this didn't work. It looks like there are some relative links in includes/application_top.php, for loading includes/configure.php, so this blew up.
Is there a good way of having the homepage in my www root directory like this, or should I do a redirect instead?
My concern with doing a redirect is, what is the right way to do this, for the search engines? Would doing a 301 redirect from the .htaccess file be appropriate for this case?
I think using .htaccess to do a 301 redirect is the best way to redirect for all the old pages that now have new versions in the oscmax site. But is it the best solution, for redirecting from the index.html to the catalog/homepage.php page?
Thanks in advance for any suggestions with this. I do have some good page rankings for my current site, and I'd hate to lose that when I upgrade to my new, wonderful oscmax site!