Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Make a catagory page the defalt home page
 
wizardmagic
Jr. Member
 
Total Posts:  9
Joined:  2007-09-02
 

What is the easiest way to make a category page the default “home page” on the website?

 
Magento Community Magento Community
Magento Community
Magento Community
 
MonsterMonster
Jr. Member
 
Total Posts:  2
Joined:  2007-09-18
 

If anyone knows how to do this I’d also like to know.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Danebrood
Jr. Member
 
Total Posts:  8
Joined:  2007-08-31
 

Here is how I did it, though this is definitely just a temporary quicky-hack.

Say you have a category page that is:

http://www.YOURDOMAIN.com//catalog/category/view/s/some_category/id/1/

the URI path is what you want the Zend Router using to know which page to show so, I stuck this at the very beginning of Mage.php:

if($_SERVER['REQUEST_URI'== '/'{
    $_SERVER[
'REQUEST_URI''/catalog/category/view/s/some_category/id/1/';
}

Which is basically, IF the URI is ‘/’ (ie homepage), then blah blah. You may have to change the ‘REQUEST_URI’ server variable name to something else depending on what your server is calling the uri path.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Shine Marketing
Jr. Member
 
Total Posts:  15
Joined:  2007-12-03
 

I’ve tried this here and it gets the desired effect:
http://pocolocostyle.com/

I set up a category on its own caled ‘Home’ which makes a useful link appear on the menu
The items in it are the 3 items I want to appear on the homepage
The URL for the category is http://pocolocostyle.com/store

Then I added the following code to app/Mage.php right after the first comment block

if($_SERVER['REQUEST_URI'== '/'{
    $_SERVER[
'REQUEST_URI''/store';
}

The biggest problem I then have is that there are duplicates of the homepage

one at http://pocolocostyle.com/
one at http://pocolocostyle.com/store

Google doesn’t like this as it doesn’t know which URL is the ‘real’ homepage so we disallow it from the /store version

User-agent:  *
Disallow: /store/

If there were a simpler way of choosing something other than a static CMS page as the default it would be great.
The whole ‘landing page’ setup is fantastic for categories - it just seems v tricky to use on the most important landing page of all

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top