vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Keyword Redirect (https://vborg.vbsupport.ru/showthread.php?t=217633)

akanevsky 07-01-2009 10:00 PM

Keyword Redirect
 
1 Attachment(s)
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*===================================*\
|| Keyword Redirect
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jul 01, 2009
||
|| Time required to install: ~30 seconds
|| Difficulty: easy
\*===================================*/

DESCRIPTION

Allows to easily create multiple user-friendly URLs similar to http://www.yoursite.com/go/keyword, where keyword is one of the keywords defined via the admincp.

STATISTICS

File Uploads: 1
Products to Install: 1


INTRODUCTION

Important information regarding file uploads for this hack:

To install this product, you must upload a bunch of files. The .htaccess file goes into your website root, and all other files go into your forum root. If your website root is different from your forum root, please open the .htaccess file and edit it according to the instructions in that file.

If there is already a .htaccess file in your website root, you must copy the contents of the file in this package and paste it into the one you already have.

VERSION HISTORY

1.1.0
[+] Compatible with vBulletin 3.5.x - 3.8.x.
[+] Easier to understand documentation (hopefully).

1.0.0
First Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

evgeniy225 07-02-2009 12:32 PM

good works!!!

Qwest 07-02-2009 01:59 PM

Interested in trying this out. Could definitely help with the back links in my social marketing efforts.

My only concern is the original URL getting indexed so I end up with dupe content on 2 different URLs?

saadessa 07-02-2009 05:03 PM

thank you i will test

DevilzFan 07-04-2009 02:23 AM

Okay, I like this, and wanted to give this a shot.

Edited the .htaccess since my forums are in a subdirectory of my main site though the main site is just vbadvanced.

But I can't for the life of me figure it out how to get this to work. Maybe I'm incorrectly reading what this does?

Say I have a sub-forum on my site dedicated to reviews.

In the admincp, at keywords, I'd put the following?

Keyword: reviews
Target URL: http://www.mysite.com/forums/forumdisplay.php?f=49

So if I'm reading correctly, I should just go to:
http://www.mysite.com/reviews
or
http://www.mysite.com/forums/reviews

Neither work though, so maybe I'm misreading what this does, or I screwed up somewhere?

akanevsky 07-04-2009 02:52 PM

The keyword should be prefixed with go/ e.g.
http://www.mysite.com/go/reviews
or
http://www.mysite.com/forums/go/reviews

devace 09-09-2009 10:42 PM

Nice job ;D

pavpavpav 09-10-2009 02:12 AM

does not work

luan7749 10-03-2009 02:34 PM

It' not working...Please Help

akanevsky 10-05-2009 07:32 PM

Quote:

Originally Posted by luan7749 (Post 1894222)
It' not working...Please Help

In order for this hack to work, your server has to support .htaccess files, and you have to configure the file that comes with this hack properly. If you don't know how to configure the file, please post the URL to your forums and I will attach a file for you.


All times are GMT. The time now is 11:11 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.01154 seconds
  • Memory Usage 1,738KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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