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 AI

Generated

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:

  • Set cookies to use path "/" so forum sessions work across root and subfolder.
  • Update the forum's base URL setting so generated links point where you expect.
  • Fix hardcoded asset paths (CSS/JS/images) or use symlinks to preserve paths.
  • Use 301 redirects for SEO-preserving moves and add canonical tags if content can appear in two places.
  • Test on a staging host and back up configs and vBulletin files before changes.

These options let the root serve a custom front-end while keeping vBulletin functional in /forums.

Recommended Answers

All 3 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.