How vBulletin generates URLs and why rewrites break
vBulletin ships with two URL modes that behave very differently on a shared host. The default mode produces query-string links such as showthread.php?t=1234, which work without any server configuration because the PHP file is requested directly. The optional friendly URL mode rewrites those same links into paths like /threads/1234-topic-title or /forums/5-general-discussion. That second format only resolves if the web server silently hands the request back to index.php, because no physical file or directory named threads exists on disk. When the handoff is missing, every friendly link returns a 404 while the legacy query-string links keep working, which is the classic symptom that tells you the rewrite layer, not vBulletin itself, is the failure point.
On Hostiso accounts the web server is LiteSpeed running under CloudLinux. LiteSpeed reads your .htaccess natively, so the Apache-style rewrite rules vBulletin expects are honored without any Apache process involved. The two things that must line up are the rewrite directives in .htaccess at the document root and the matching settings inside the AdminCP. If the AdminCP believes friendly URLs are active but .htaccess has no rewrite block, visitors get 404s. If .htaccess rewrites requests to index.php but the AdminCP still generates showthread.php links, you get a mix of working and dead links. Both halves have to agree, and both are editable from your unprivileged hosting account without touching anything server-wide.
A second common cause is a wrong base path. vBulletin stores the forum's URL in configuration, and if the forum lives in a subdirectory such as public_html/forum/ rather than the document root, the rewrite rules and the configured base must both reflect that subfolder. A mismatch here produces redirect loops, where the canonical redirect keeps bouncing a visitor between the bare path and the fully qualified thread URL until the browser aborts with a too many redirects error. Before changing anything, confirm exactly where the installation sits by browsing the directory tree in cPanel File Manager (Files > File Manager) or DirectAdmin (System Info & Files > File Manager).
Enabling friendly URLs and placing the rewrite block
Start in the AdminCP. For vBulletin 5 Connect, go to Admin > Settings > Options > SEO and set Use Friendly URLs to Yes, using Path Info or Yes, using Mod Rewrite. Mod Rewrite is the cleaner choice on LiteSpeed because it produces paths without the index.php fragment. On vBulletin 4, the equivalent lives under Settings > Options > Search Engine Friendly URLs, where you enable vBSEO-style or the built-in friendly archive. After saving, rebuild caches from Maintenance > Clear System Cache so the link-generation logic switches over immediately.
Next, add the rewrite block to the .htaccess file in the same directory as vBulletin's index.php. Open cPanel File Manager, enable Settings > Show Hidden Files (dotfiles), right-click .htaccess and choose Edit. If the file does not exist, create it. For a vBulletin 5 install at the document root, the working block is:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?routestring=$1 [L,QSA]
</IfModule>If the forum lives in public_html/forum/, change RewriteBase / to RewriteBase /forum/ and place the file inside that subfolder. For vBulletin 4, the rewrite target differs slightly; the archive and clientscript assets must be excluded so they load as static files:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]
</IfModule>The two RewriteCond lines are what stop a redirect loop: they tell LiteSpeed to serve any request that maps to a real file or directory as-is, and only route the remaining virtual paths through vBulletin. Removing them is the single most common self-inflicted cause of CSS and image 404s, because the server starts sending stylesheet requests to index.php. After saving, hard-refresh a thread URL. If friendly links now resolve, the rewrite layer is healthy.
Canonical redirects, HTTPS, and killing duplicate content
Search engines penalize a forum that serves the same thread under several addresses: with and without www, over HTTP and HTTPS, and under both the friendly path and the old query string. vBulletin emits a <link rel="canonical"> tag automatically when friendly URLs are on, but you still need to force a single scheme and hostname at the server edge so crawlers never see the duplicates. Put the canonical-host rules above the vBulletin rewrite block in the same .htaccess:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^(.*)$ https://example.com/$1 [L,R=301]Replace example.com with your real domain and keep the HTTPS redirect first so a single hit resolves scheme and host in one pass rather than chaining two 301s. Do not duplicate RewriteEngine On inside the <IfModule> block below; one declaration at the top of the file is enough. Confirm the AdminCP's configured forum URL under Settings > Options > Site Name / URL / Contact Details uses the exact same https:// and non-www form, otherwise vBulletin's own canonical tag will fight your server redirect and produce a loop.
If you need a working SSL certificate first, issue one from cPanel under Security > SSL/TLS Status or DirectAdmin under Account Manager > SSL Certificates using the free AutoSSL option before enforcing the HTTPS redirect. The same mixed-content and redirect-loop logic that applies to other carts is covered in our osCommerce SSL & HTTPS guide, and the diagnostic approach transfers directly to vBulletin.
Sitemaps, 404 handling, and verifying the result
vBulletin generates its own XML sitemap on a schedule. In vBulletin 5 open Settings > Options > XML Sitemap, enable it, and set a rebuild interval; the file is written to /core/sitemap/ and referenced by sitemap.php. If the sitemap never updates, the scheduled task is not firing. On shared hosting vBulletin relies on visitor-triggered cron, so a low-traffic forum may need a real cron hit. Add a cron job in cPanel under Advanced > Cron Jobs (or DirectAdmin Advanced Features > Cron Jobs) that fetches the scheduler every fifteen minutes using the account's PHP binary:
*/15 * * * * /usr/local/bin/php /home/USERNAME/public_html/includes/cron.phpReplace USERNAME and the path to match your account. Confirm which PHP version runs the forum in cPanel under Software > Select PHP Version (PHP Selector) or DirectAdmin's PHP version picker so the CLI binary matches the web handler. Once the sitemap is present, submit https://example.com/sitemap.php in Google Search Console rather than the raw XML path, because the PHP wrapper sets the correct content type.
For 404 behavior, let vBulletin handle unknown routes rather than your server's generic error page, so deleted threads return a proper soft-404 with navigation. Avoid adding an ErrorDocument 404 directive that points at a static HTML file, since that bypasses the rewrite handoff and can mask real routing problems. If you are migrating old vBSEO-style links, add targeted 301s above the main rewrite block, for example RewriteRule ^f([0-9]+)/?$ /forums/$1 [R=301,L], mapping each legacy pattern to its modern equivalent so link equity transfers cleanly.
Verify everything by watching the account's local error_log, which LiteSpeed writes into the directory where the error occurs. Request a friendly thread URL, a legacy query-string URL, and a stylesheet, then open error_log in File Manager. A clean run shows no new rewrite or file-not-found entries, the canonical tag in page source points at the single enforced hostname, and a curl -I against the www and HTTP variants returns exactly one 301 before the 200. When all three hold, your friendly URLs, canonicals, and sitemap are correctly aligned without any root access.