vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Little .htaccess (https://vborg.vbsupport.ru/showthread.php?t=145100)

Yours Truly 04-17-2007 03:27 PM

Little .htaccess
 
PHP Code:

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

This is to make the username on vBulletin go www.example.com/username as apposed to the normal url.

I believe it needs to be edited to work on PHP5 but to be honest i don't really ahvea ny experience writing PHP5 so any help? :)

Dismounted 04-18-2007 06:22 AM

htaccess (mod_rewrite) doesn't use PHP, therefore, it is not affected by PHP versions. mod_rewrite is an Apache addon.

TheRed 04-19-2007 03:44 AM

As he said, you don't need to change anything on the php file to make the profile from being displayed. However you will need to do some changes if you want to have SEO links in that profile page.

Perhaps you could make use of the vBSeo Software.

Yours Truly 04-19-2007 07:59 AM

It didn't seem to want to work with my 3.5.8 any suggestions on that then?

Dismounted 04-19-2007 09:11 AM

You need to specify a rewrite condition (RewriteCond) before you can specify a rule. I suggest you read up on mod_reqrite first.

Yours Truly 04-19-2007 10:55 AM

Quote:

Originally Posted by Dismounted (Post 1231093)
You need to specify a rewrite condition (RewriteCond) before you can specify a rule. I suggest you read up on mod_reqrite first.

Ok thanks :)

Cap'n Steve 04-20-2007 05:06 AM

Quote:

Originally Posted by Dismounted (Post 1231093)
You need to specify a rewrite condition (RewriteCond) before you can specify a rule. I suggest you read up on mod_reqrite first.

Are you sure about that? Yours Truly, what happens when you try to use this? Also, the second rule will cancel out the first, since it can match 0 times.

Yours Truly 04-20-2007 08:38 AM

Well it used to work with 3.5.5 but not with 3.5.8

www.marmbi.com/Dan

Thats what happens

zardos 04-27-2007 02:21 PM

Quote:

Originally Posted by Yours Truly (Post 1231815)
Well it used to work with 3.5.5 but not with 3.5.8

www.marmbi.com/Dan

Thats what happens

Cant get this to worke on 3.6 why?


All times are GMT. The time now is 01:01 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.01019 seconds
  • Memory Usage 1,727KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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