vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Auto URL Shortener on Another Domain (https://vborg.vbsupport.ru/showthread.php?t=247939)

vivoperdio 08-04-2010 06:55 AM

Auto URL Shortener on Another Domain
 
How to shorten URL like screenshot below:

http://img8.imageshack.us/img8/8974/screen234.png

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 :)

vivoperdio 08-12-2010 09:52 AM

<i>*bump*</i> Anybody here ?!

BirdOPrey5 08-16-2010 08:50 PM

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.

vivoperdio 08-23-2010 09:02 AM

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 ?

BirdOPrey5 08-23-2010 02:02 PM

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

That I don't know.

vivoperdio 08-24-2010 01:12 AM

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

dartho 10-16-2010 12:45 AM

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


All times are GMT. The time now is 09:16 AM.

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.01106 seconds
  • Memory Usage 1,720KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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