vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Shorter Profile Url (https://vborg.vbsupport.ru/showthread.php?t=165986)

jerx 10-14-2008 08:03 PM

Does anybody know which characters will cause problems with this mod? Spaces seem to be a big problem.

It looks like this similar mod does not have any problems with special characters and spaces:
https://vborg.vbsupport.ru/showthrea...rofile+rewrite

Does that work for anyone?

jdebler 04-12-2011 10:18 PM

I am using this and it works fine, here is what I have in my /blog/ directory .htaccess file:

Code:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://www.mydomain.com/forums/blog.php?username=$1 [R]

But I am wondering if a directory is needed and if this cannot be done in the .htacces file in the main site directory.

I tinkered around with mine, and the closest I came to making it work was by adding the following code to my other lines of code in my .htaccess file in my main site directory:

Code:

redirectmatch 301 /blog(/.*)?$ http://www.mydomain.com/forums/blog.php?username=$1
The end result was close, but no cigar...

By going to
http://www.mydomain.com/blog/username
the end result is

http://www.mydomain.com/forums/blog.php?username=/username

That slash before the user name is what breaks it. Anyone know how to fix this?

bigs15 04-27-2011 10:01 AM

I am having a Problem.
When i go to.
http://mysite.com/username
the User id opens
but when i go to
http://mysite.com/member.php?u=2
then also member profile opens ..how do i remove this urls

http://mysite.com/member.php?u=2

fxdigi-cash 09-22-2013 08:47 PM

tried this and didn't work for vb4.2.1

Buzzle 01-18-2015 07:49 PM

Sorry for gravedigging but can someone convert this to nginx?

CallieJo 02-18-2015 08:18 PM

Quote:

Originally Posted by Buzzle (Post 2533222)
Sorry for gravedigging but can someone convert this to nginx?

Sorry, I'm not familiar with that. You might try a forum dedicated to nginx. They might be able to convert the rewrite rule to something you can use.


All times are GMT. The time now is 01:33 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01080 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete