vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Modrewrite & Forum Home Page Option (https://vborg.vbsupport.ru/showthread.php?t=175977)

MrTJ 04-12-2008 07:57 PM

Modrewrite & Forum Home Page Option
 
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:

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


All times are GMT. The time now is 07:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00888 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete