Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 08-04-2010, 06:55 AM
vivoperdio's Avatar
vivoperdio vivoperdio is offline
 
Join Date: Jun 2009
Location: Lajatico, Tuscany, Italy
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Auto URL Shortener on Another Domain

How to shorten URL like screenshot below:



So if it's https://vborg.vbsupport.ru/showthread.php?t=247939

It would shorten to http://www.vb.org/247939 [EXAMPLE]

I think it's only .htaccess styling and no need vBulletin Modification, any help would be appreciated.

Thank you for your kind attention and help
Reply With Quote
  #2  
Old 08-12-2010, 09:52 AM
vivoperdio's Avatar
vivoperdio vivoperdio is offline
 
Join Date: Jun 2009
Location: Lajatico, Tuscany, Italy
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<i>*bump*</i> Anybody here ?!
Reply With Quote
  #3  
Old 08-16-2010, 08:50 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Assuming you own the shorter domain (vb.org in your example) AND that it's setup to show the same content as the longer domain already (vbulletin.org) then you just need an .htaccess file in your web root directory...

For example my code rewrites http://juot.net/ to http://www.juot.net/

Code:
RewriteEngine on

RewriteCond %{HTTP_HOST} ^juot.net$
RewriteRule ^(.*)$ "http\:\/\/www\.juot\.net\/$1" [R=301,L]
This site gives more info:
http://www.affiliatebeginnersguide.c...direction.html
and recommends tbe following htaccess code:
Code:
#Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.olddomain.com$[OR]
RewriteCond %{HTTP_HOST} ^olddomain.com$
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
where olddomain.com would be your 'long' url and newdomain.com would be your short url.
Reply With Quote
  #4  
Old 08-23-2010, 09:02 AM
vivoperdio's Avatar
vivoperdio vivoperdio is offline
 
Join Date: Jun 2009
Location: Lajatico, Tuscany, Italy
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but that still using https://vborg.vbsupport.ru/showthread.php?t=12345

how to make if people visit http://vb.org/12345 they're automatically forwarded to https://vborg.vbsupport.ru/showthread.php?t=12345 ?
Reply With Quote
  #5  
Old 08-23-2010, 02:02 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So you want the address bar to say "vb.org" but show the info from "vbulletin.org" ?

That I don't know.
Reply With Quote
  #6  
Old 08-24-2010, 01:12 AM
vivoperdio's Avatar
vivoperdio vivoperdio is offline
 
Join Date: Jun 2009
Location: Lajatico, Tuscany, Italy
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it doesn't matter on address bar will show vb.org or vbulletin.org

but if people visit http://vb.org/12345 they will be forwarded to https://vborg.vbsupport.ru/showthread.php?t=12345
Reply With Quote
  #7  
Old 10-16-2010, 12:45 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check here: https://vborg.vbsupport.ru/showthread.php?t=241008
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:28 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.04145 seconds
  • Memory Usage 2,209KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete