Dani,
How did you make your home page come up when you type in www.daniweb.com
The forumhome page in vbulletin is stored in /forums/index.php
so how did you avoid that and have your homepage come up when a person just types www.daniweb.com?
-Jay
Dani,
How did you make your home page come up when you type in www.daniweb.com
The forumhome page in vbulletin is stored in /forums/index.php
so how did you avoid that and have your homepage come up when a person just types www.daniweb.com?
-Jay
raised the core question (serve a non-forum landing page at the site root while leaving vBulletin in a subfolder). and noted the site uses custom front-end work, and referenced built-in config options. Below are practical, server-side patterns and a short checklist that expand on implementation choices and common pitfalls not covered above.
One safe choice is to serve the site root from a separate document root and alias the forum folder. That keeps the forum code untouched and makes the front page fully independent.
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/site_root
Alias /forums /var/www/forums
</VirtualHost> If you cannot change vhost config, an .htaccess-level approach can either internally rewrite root requests to a landing script (URL stays "/") or issue a 301 redirect (URL changes). Use the internal rewrite for a true root landing; use a 301 if you want search engines to index the forum path.
# internal rewrite (serve home.php for "/")
RewriteEngine On
RewriteRule ^$ /home.php [L]
# or permanent redirect (choose one)
RedirectMatch 301 ^/$ /forums/ For Nginx setups, either use try_files to serve a root script or proxy to an app backend. Example:
location = / { try_files /home.php =404; }
location /forums/ { alias /var/www/forums/; } Quick checklist and cautions:
These options let the root serve a custom front-end while keeping vBulletin functional in /forums.
Jump to Post— Dani 5,664While DaniWeb is based on the vBulletin framework, there are many additions that I custom-coded myself, including our portal, the blogs, code snippet library, link directory, tutorials, and more.
Daniweb's homepage is custom index file. 'techtalkforums' is a directory folder.
While DaniWeb is based on the vBulletin framework, there are many additions that I custom-coded myself, including our portal, the blogs, code snippet library, link directory, tutorials, and more.
In the vbulletin control panel.
-click on vbulletin on the left of the panel
-click general setting Or a name simialiar to that.
-then it opens up a window within the control panel
- you then click on the drop down menu and you will see a selection for homepage/url/cantact info.
-click that and you can change it right there.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.