Log in

View Full Version : Can I redirect a thread from the server-side?


Viper220
11-19-2003, 07:26 PM
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
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.