View Full Version : Keyword Redirect
akanevsky
04-06-2006, 10:00 PM
/*===================================*\
|| 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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=217633)
akanevsky
04-07-2006, 08:49 PM
<font size="3">First Post Reserved.</font>
Stifler
04-07-2006, 09:08 PM
VERY AWESOME. GREAT HACK
/install
dieselpowered
04-07-2006, 09: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, 09: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, 09:35 PM
Ok let me edit that and see if it helps :)
dieselpowered
04-07-2006, 09:37 PM
Hmmm nope that did not work...here is what I have:
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, 09: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, 09:54 PM
Hi there, yes, the forums are in the root directory :)
joeychgo
04-07-2006, 10: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
akanevsky
04-07-2006, 10:07 PM
Hi there, yes, the forums are in the root directory :)
Try the change I told you.
As for the question below, you add the keywords via admincp - see screenshot.
MissKalunji
04-07-2006, 10:19 PM
whats the point of that mod? i dont get it?
akanevsky
04-07-2006, 10:35 PM
I don't really understand the point, but it was easy to make and someone asked me to - so I did.
MissKalunji
04-07-2006, 10:45 PM
arf ok :-/
bada_bing
04-08-2006, 12:03 AM
OK dumb question but what does this hack do and what are the advantages of having it?
akanevsky
04-08-2006, 12:05 AM
This hack allows you to create URL shortcuts to either internal or external links within your own board.
The shortcuts look like:
http://www.yoursite.com/go/myshortcut
PabloAM
04-08-2006, 02:05 AM
Not GO :(
What is problem??
I uploaded good and uploaded product...
www.xboxers360.net my keyword is xboxers360 to http://www.xboxers360.net
any xboxers360 is URLed :(
HELPME
MissKalunji
04-08-2006, 02:06 AM
oops wrong thread
bada_bing
04-08-2006, 02:12 AM
This hack allows you to create URL shortcuts to either internal or external links within your own board.
The shortcuts look like:
http://www.yoursite.com/go/myshortcut
Sorry still sont understand
dvsDave
04-08-2006, 01:48 PM
Psionic Vision, this a great product! I've installed it and started playing with it. The way you coded it made possible to create virtual directories of shortcuts as well. For instance I was able to create the shortcut products/nikon and linked it to Nikon's site. I then typed http://www.exampleURL.com/go/products/nikon and it worked! I also didn't use the RewriteBase part of the .htaccess and just altered the rewriteURL as you suggested in an earlier post. All in all, Needs better documentation for most people, though. Other than that, a great hack!
toolblast
04-11-2006, 08:54 PM
To answer all the 'what the heck is this?' questions...
I think what this does it basically give the admin the chance to make urls that redirect to other pages. Sort of like AOL keywords.
It may be useful if you were running, for example, a dictionary site or glossary and the user types /go/dog and then that would redirect to a forum search with all posts about dogs?
lol.
magnaromagna
05-29-2006, 07:12 PM
I have the same problem: I have vbseo installed, I tried to install this hack but don't works. I have the forum in site.ext/forum/ and I added this code at .htaccess RewriteRule ^go/(.*)$ forum/keyword.php?keyword=$1
After add some keywords in admin panel, I see that nothing changed in threads
Is a conflict with vbseo?
akanevsky
05-30-2006, 01:06 AM
This hack does not change anything in threads. It simply allows you to use those links, but you have to add the links in templates yourself.
whitetigergrowl
05-30-2006, 03:04 AM
Can external links be used as well? Also, I have mine in a subdirectory as well, did the edit above, and still doesnt work for me either.
akanevsky
05-30-2006, 06:06 PM
Yes, you can use any links.
As for subdirectories - see .htaccess commentary added by this hack.
whitetigergrowl
05-31-2006, 02:34 AM
RewriteRule ^go/(.*)$ community/keyword.php?keyword=$1
I have. And still no go.
akanevsky
05-31-2006, 08:39 PM
The RewriteBase part is what you need.
whitetigergrowl
06-02-2006, 02:51 AM
Still no go.
RewriteBase /
RewriteRule ^go/(.*)$ community/keyword.php?keyword=$1
akanevsky
06-02-2006, 07:24 PM
Try:
RewriteBase /community/
RewriteRule ^go/(.*)$ keyword.php?keyword=$1
whitetigergrowl
06-02-2006, 09:13 PM
Copied and pasted...and still nothing.
I have this in my forum subfolder (which is 'community'). I have tested it numerous times and still nothing even though I have entered the info as stated and everything shows in the admincp. The forums do not reflect any changes and no keywords are highlighted or anything else.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.