Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Page Mng add-on: How to make tab to be the default homepage for my site?
Installed the Page Manager add-on a few days ago. It works great. I set-up a few new tabs like "FAQs", "Troubleshooting", etc.. I created another new tab called "Home" which I want to be the home (e.g: front page) of my web site. However, in the Page Manager add-on there is NO option to set a tab as the "default tab", so........ any ideas how I could have the "Home" tab of Vanilla come up as the first page when people visit my web site?
For example: http://www.mysite.com where the Vanilla install is located, but instead of being shown "Discussions"... I want visitors to see the "Home" tab that I created using Page Manager.
Please help with any suggestions on what I need to change to make this happen. I searched on these forums to find an answer, but couldn't find anything specific. I did notice that many other people have had the same or similar question over the last year on these forums... but with no clear solution...
0
This discussion has been closed.
Comments
Posted: Wednesday, 7 March 2007 at 11:33AM (AEDT)
Just create the following .htaccess file in your Vanilla root directory:
RewriteEngine On Options +FollowSymLinks -Multiviews RewriteRule ^$ categories.php [L]
DirectoryIndex categories.php
But neither of these will work with a Page Manager page.
Posted: Wednesday, 7 March 2007 at 8:47PM (AEDT)
RewriteEngine On Options +FollowSymLinks -Multiviews RewriteCond %{QUERY_STRING} ^$ RewriteRule ^$ ?Page=home [L]
Observe
Every time "Discussions Tab" is clicked, it takes you to the ?Page=whatever page!
So you also need to add /index.php to the Discussions TAB URL in Page Manager.
Thanks squirrel I think we finally have a solution to this long standing issue.
Posted: Thursday, 8 March 2007 at 2:39PM (AEDT)
Where would you add /index.php? I'm also interested in this.Never mind, I figured it out.
Thanks for the fix for this issue!!
It goes to the nominated page instead of the discussions page.
In themes/comments_foot.php I added a slash to index.php (line 5)...
GetUrl($this->Context->Configuration, '/index.php'
...which appears to fix things but the URL gets a double slash, it that a problem?It seems to work.
Posted: Thursday, 8 March 2007 at 10:05PM (AEDT)
Any insight on this would be GREATLY appreciated - it's been a very long day wrestling with this! lol
Thanks in advance,
Dr. W
However, I'd still be very interested in any further info that can be shared on the above issue, i.e. pointing to specific Pages. Thanks!
Massive edit:
I don't have mod_rewrite installed, apparently.
This guide has a good paragraph on how to check to see if it's installed or not:
http://www.workingwith.me.uk/articles/scripting/mod_rewrite