vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can I redirect a thread from the server-side? (https://vborg.vbsupport.ru/showthread.php?t=58704)

Viper220 11-19-2003 07:26 PM

Can I redirect a thread from the server-side?
 
Hi folks,

I want to redirect users attempting to click through to a single thread on my VB board. The URL for this thread is getting blasted through Google, so I want to route everyone going to it to a static html page. Is it possible to put in place a server-side redirect that will take visitors just to that one thread to another location?

I say server-side because that would cut down on the server load if the visitor never has to touch the forum on their way to the redirect.

Please let me know. Thanks in advance!

-Brian

Chris M 11-19-2003 07:52 PM

Quote:

Originally Posted by Viper220
Hi folks,

I want to redirect users attempting to click through to a single thread on my VB board. The URL for this thread is getting blasted through Google, so I want to route everyone going to it to a static html page. Is it possible to put in place a server-side redirect that will take visitors just to that one thread to another location?

I say server-side because that would cut down on the server load if the visitor never has to touch the forum on their way to the redirect.

Please let me know. Thanks in advance!

-Brian

I assume you would just have to put an if statement in showthread.php, that if $thread[threadid] = the threadid of the thread you want to go somewhere else, you would then put a redirect in;)

Satan

Viper220 11-19-2003 07:55 PM

Thanks, that's an interesting suggestion. I'm not too good with If/Then statements, but I'll see if I can give it a shot.

Viper220 11-19-2003 08:00 PM

Could the statement go anywhere in showthread.php or does it have to be at a certain part? If you don't mind saying.


All times are GMT. The time now is 01:40 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.00880 seconds
  • Memory Usage 1,713KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete