Log in

View Full Version : Modrewrite & Forum Home Page Option


MrTJ
04-12-2008, 07:57 PM
Hello,

Firstly, I have setup a Modrewrite were you can access users profiles via www.myboard.com/username instead of member.php?u=1. However, the links around the forum are still member.php?u=1. Using Modrewrite can I change the URLs around the forum?

This is my code:

RewriteEngine On
RewriteRule ^$ forum.php
RewriteRule (^[-_A-Za-z0-9\ ]*$) member.php?&username=$1


Secondly, I have changed my boards file to forum.php instead of index.php using the Script Name for Forum Home Page in vBulletin options. I have made a page in my styles which I want my index.php to be. How can I set my new page to be index.php using templates in vBulletin?

Thank you!

SEOvB
04-12-2008, 08:20 PM
the first one will take some template edits replacing member.php?u=$bbuserinfo[userid] with /$bbuserinfo[username]

This article explains how to make custom pages: https://vborg.vbsupport.ru/showthread.php?t=62164

simply use index.php as the file name.

Lynne
04-12-2008, 09:58 PM
You might want to read this article: Shorter Profile Url (https://vborg.vbsupport.ru/showthread.php?t=165986&highlight=mod_rewrite)