shops-a-lot Posted May 31, 2012 Share Posted May 31, 2012 How can I move products to the Home page? I want to use WHMS has a store and display products prior to Log-in. Would it be possible to make cart.php the default Home page? 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted June 1, 2012 Share Posted June 1, 2012 (edited) you can always try this DirectoryIndex cart.php index.php index.html site-down.php Cart.php being first in the list makes the cart page the default loading page "if it exists" otherwise the next existing file in the list is used, id it doesnt have on in the list, (the server default is used) if that file doesnt exist the directory index is used, if indexing is on, it that isnt on, then they see the directory, without any files listes. Phew i need to type less Edited June 1, 2012 by disgruntled 0 Quote Link to comment Share on other sites More sharing options...
shops-a-lot Posted June 1, 2012 Author Share Posted June 1, 2012 Thanks for your suggestion. I will give it a try... I just checked my whmcs installation and see that I have this file: htaccess.txt Why does whmcs use htaccess.txt vs. .htaccess? Is there a significant difference? 0 Quote Link to comment Share on other sites More sharing options...
shops-a-lot Posted June 1, 2012 Author Share Posted June 1, 2012 I have tried adding the above code to htaccess.txt, but it does not seem to work for me. Cart.php is not being used a the default. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted June 1, 2012 Share Posted June 1, 2012 rename htaccess.txt to .htaccess 0 Quote Link to comment Share on other sites More sharing options...
shops-a-lot Posted June 1, 2012 Author Share Posted June 1, 2012 rename htaccess.txt to .htaccess Great, that works! Thanks. 0 Quote Link to comment Share on other sites More sharing options...
shops-a-lot Posted June 1, 2012 Author Share Posted June 1, 2012 I guess now I also need to make the "Home" link in the menu go to cart.php instead of index.php. Will it be necessary to edit the template to make changes to the menu? 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted June 1, 2012 Share Posted June 1, 2012 templates/templatename/header.tpl You should find all you need in there. 0 Quote Link to comment Share on other sites More sharing options...
acosaburca_1 Posted June 21, 2013 Share Posted June 21, 2013 See this: http://forums.whmcs.com/showthread.php?74867-BH-Home-Auth 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.