The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to make a minimum link to a single (separate) post without URL shortening?
For example, I insert to Twitter or Facebook a link to a separate post .
I want to get a link to a separate post number 13 in the thread http://pr.ai/showthread.php?1728/page2 I click on #13 on the corresponding post (right, near the empty box). I get in the browser URL http://pr.ai/showthread.php?1728-Bax...ll=1#post20019 I'm cutting this URL to http://pr.ai/showthread.php?1728&p=20019#post20019 Is it possible to further reduce URL? What is striking is that twice repeated 20019. Can you eliminate this redundancy? Ideally, one could be left only the number of post 20019, as it is unique, and it is enough. That is something like http://pr.ai/p=20019 But it does not work. Is it possible to achieve this ideal of brevity? |
#2
|
||||
|
||||
Yes. You can just use http://pr.ai/showthread.php?p=12345.
Or, to make it even shorter, you could add a rewirte rule in your .htaccess: Code:
RewriteRule p=([0-9]*)$ http://pr.ai/showthread.php?p=$1 Or Code:
RewriteRule go([0-9]*)$ http://pr.ai/showthread.php?p=$1 |
2 благодарности(ей) от: | ||
Igor.Gabrielan, tbworld |
#3
|
|||
|
|||
Thank you! Got it!
I made a version with pr.ai/p=20019 --------------- Added [DATE]1406234933[/DATE] at [TIME]1406234933[/TIME] --------------- I made now pr.ai/post20019 Code:
RewriteRule post([0-9]*)$ http://pr.ai/showthread.php?p=$1 First, because it's easier to do short of a long link. Enough to cut one piece of text. Secondly, so understandable and corresponds to the standard syntax for vBulletin's URL. Thirdly, it is paradoxical, but I get such a short link that many either do not understand that this link, or not get the cursor on it. Number of transitions to link plummeted. Try to extend a little link. |
#4
|
|||
|
|||
By analogy shortened link for threads
http://pr.ai/showthread.php?714-quot...2%2C+France%2C --> http://pr.ai/showthread.php?714 --> http://pr.ai/thread714 Code:
RewriteRule thread([0-9]*)$ http://pr.ai/showthread.php?$1 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|