View Full Version : Keyword Redirect
Psionic Vision
07 Apr 2006, 22:43
/*===================================*\
|| Keyword Redirect
||
|| =======================================
|| Brought to you by:
|| VisionScripts (http://www.visionscripts.com/)
|| Premium PHP & vBulletin Solutions!
|| =======================================
||
|| Author : Anton Kanevsky (aka Psionic Vision)
|| 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 (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=217633)
Psionic Vision
07 Apr 2006, 22:49
First Post Reserved.
Stifler
07 Apr 2006, 23:08
VERY AWESOME. GREAT HACK
/install
dieselpowered
07 Apr 2006, 23:32
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?
Psionic Vision
07 Apr 2006, 23:34
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
07 Apr 2006, 23:35
Ok let me edit that and see if it helps :)
dieselpowered
07 Apr 2006, 23:37
Hmmm nope that did not work...here is what I have:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Psionic Vision
07 Apr 2006, 23:50
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
07 Apr 2006, 23:54
Hi there, yes, the forums are in the root directory :)
joeychgo
08 Apr 2006, 00:04
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
Psionic Vision
08 Apr 2006, 00:07
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
08 Apr 2006, 00:19
whats the point of that mod? i dont get it?
Psionic Vision
08 Apr 2006, 00:35
I don't really understand the point, but it was easy to make and someone asked me to - so I did.
MissKalunji
08 Apr 2006, 00:45
arf ok :-/
bada_bing
08 Apr 2006, 02:03
OK dumb question but what does this hack do and what are the advantages of having it?
Psionic Vision
08 Apr 2006, 02:05
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
08 Apr 2006, 04:05
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
08 Apr 2006, 04:06
oops wrong thread
bada_bing
08 Apr 2006, 04:12
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
08 Apr 2006, 15:48
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
11 Apr 2006, 22:54
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
29 May 2006, 21:12
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
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
After add some keywords in admin panel, I see that nothing changed in threads
Is a conflict with vbseo?
Psionic Vision
30 May 2006, 03:06
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
30 May 2006, 05:04
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.
Psionic Vision
30 May 2006, 20:06
Yes, you can use any links.
As for subdirectories - see .htaccess commentary added by this hack.
whitetigergrowl
31 May 2006, 04:34
RewriteRule ^go/(.*)$ community/keyword.php?keyword=$1
I have. And still no go.
Psionic Vision
31 May 2006, 22:39
The RewriteBase part is what you need.
whitetigergrowl
02 Jun 2006, 04:51
Still no go.
RewriteBase /
RewriteRule ^go/(.*)$ community/keyword.php?keyword=$1
Psionic Vision
02 Jun 2006, 21:24
Try:
RewriteBase /community/
RewriteRule ^go/(.*)$ keyword.php?keyword=$1
whitetigergrowl
02 Jun 2006, 23:13
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.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.