Guest acaso Posted February 15, 2010 Share Posted February 15, 2010 Hello, I would like to redirect the home page to products_new.php, I tried with: <?php header("location: http://www.*****.com/products_new.php"); ?> but it doesn't work, thanks Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted February 15, 2010 Share Posted February 15, 2010 Hello, I would like to redirect the home page to products_new.php, I tried with: <?php header("location: http://www.*****.com/products_new.php"); ?> but it doesn't work, thanks No, it will not work because the header.php has already started to render text on an html page. Header redirects will no longer work. The index page does a lot more than just render the intro page to your site. If you really want to do this, even with the possibility of seeing a blank page some day, then look for this in the index.php } else { // default about 2.3 of the way into the page. What follows is what is sent to the broswer as the 'into' page of your site. Make your edits there. Keep a clean back up until you fully realize how that index.php file is laid out. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
Guest acaso Posted February 15, 2010 Share Posted February 15, 2010 Thanks, but I can't figure out how to do this. Do I have to change the content of FILENAME_DEFAULT ? Link to comment Share on other sites More sharing options...
Guest acaso Posted February 17, 2010 Share Posted February 17, 2010 At least, how can I display full list of products of all categories in the home page? Or the list of new products? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.