vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Keyword Redirect (https://vborg.vbsupport.ru/showthread.php?t=112425)

akanevsky 04-06-2006 09:00 PM

Keyword Redirect
 
/*===================================*\
|| 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

akanevsky 04-07-2006 07:49 PM

<font size="3">First Post Reserved.</font>

Stifler 04-07-2006 08:08 PM

VERY AWESOME. GREAT HACK
/install

dieselpowered 04-07-2006 08:32 PM

hmmm not working??

I have the vbSEO hack installed, therefore, my htaccess file already had RewriteEngine On in the beginning...do I still add all of your stuff above it?

akanevsky 04-07-2006 08:34 PM

You would need to add everything except for RewriteEngine On.
I do not have vBSEO .htaccess file, so I cannot give you further instructions.

dieselpowered 04-07-2006 08:35 PM

Ok let me edit that and see if it helps :)

dieselpowered 04-07-2006 08:37 PM

Hmmm nope that did not work...here is what I have:

Code:

RewriteEngine On

# Uncomment this if you have the script in a subfolder. Make sure there is a trailing slash.
# RewriteBase /

RewriteRule ^go/(.*)$ keyword.php?keyword=$1

RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]


akanevsky 04-07-2006 08:50 PM

First of all, is your forum in the root of your site?
If it's not, and it seems to me that it's not, then try changing:

RewriteRule ^go/(.*)$ keyword.php?keyword=$1

to

RewriteRule ^go/(.*)$ forums/keyword.php?keyword=$1

dieselpowered 04-07-2006 08:54 PM

Hi there, yes, the forums are in the root directory :)

joeychgo 04-07-2006 09:04 PM

I would bet this would conflict with vBSEO since they are both rewriting the urls.

How does this determin which keyword to place? I would like to see a demo


All times are GMT. The time now is 02:33 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.03072 seconds
  • Memory Usage 1,728KB
  • 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_code_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
  • (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