Can I make a Category Page the Homepage of my blog temporarily?

1 replies
Hello

I need to temporarily make the homepage of my blog one of the category pages.

eg. My category page is:
http://www.mydomain.com/category/
and I want this to be the page that is loaded when the user enters http://www.mydomain.com in the browser.


I can see that through the "Settings>Reading" option I can make the home page either the posts or a static page but my category page is not showing there as a static page to select.

I need this only for a few weeks so I need to be easily able to return the blog to the normal homepage http://www.mydomain.com/index.php

Is there a way to do this through the Wordpress Theme settings or can I do this through the .htaccess file and what do I have in .htaccess if this is the case?

Thanks
#blog #category #homepage #make #page #temporarily
  • Profile picture of the author ALicenseToCode
    Doing it through htaccess will be the easiest way as that functionality is not built into wordpress. You would have to build a template page that loaded the category by its category id and then assign that custom template to a static page and then set that static page as the homepage (lol).

    This rule should do it for you:

    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^/$ /CATEGORY_DIRECTORY_HERE/ [NC]
    {{ DiscussionBoard.errors[6607114].message }}

Trending Topics