Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2003, 10:35 PM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Redirection hack request

Let's c:

I had my forums at www.domain1.com/sitename/forums

Now I transferred them to www.domain2.com/forums

Is there any way to set up VB so ANY request of any page or script (showthread.php, quiz.php, member.php, WHATEVER.php...) to the OLD domain1 URL (whichever parameters you fill in) will lead you to the correct domain?


Tried with REDIRECT PERMANENT directive on Apache, but problem is parameters ARE NOT passed this way, so any1 asking for

http://domain1.com/site/forums/showt...threadid=22222

will be taken to

http://domain2.com/forums/showthread.php
Reply With Quote
  #2  
Old 06-07-2003, 10:38 PM
Rhod Rhod is offline
 
Join Date: Aug 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could just write a redirect html and use that
Reply With Quote
  #3  
Old 06-07-2003, 10:41 PM
Rhod Rhod is offline
 
Join Date: Aug 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To make it simple....here is a code I just wipped up...
Quote:
<html>
<head>
<title>Forums Have Moved</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--hide from old browsers
var time = null
function move() {
window.location = 'http://www.yoursite.com/'
}
//-->
</script>
</head>

<body bgcolor="#000000"text="#FFFF00" link="#00FF00" vlink="#00FF00" alink="#00FF00" onload="timer=setTimeout('move()',1000)">
<div align="center">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p></p>
<p><b><font face="Arial" color="#FFFF00" size="+2">Boards Have Moved<br>
You will be redirected to : <br>
<a href=http://www.yoursite.com/>http://www.yoursite.com/</a><br>
Click on the link above if it does not automatically forward you<br>
<br></font></b></p>
</div>
</body>
</html>
Reply With Quote
  #4  
Old 06-07-2003, 10:46 PM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Er....

the code you wrote is THE SAME than a simple
"<meta http redirect "timeout; url=url to redirect">"

BUT

I WANT to redirect also the parameters...!

So if a user followed
http://domain1.com/site/forums/showt...threadid=22222

will be taken to

http://domain2.com/forums/showthread.php?threadid=22222


NOTE the ?threadid=22222
Reply With Quote
  #5  
Old 06-07-2003, 10:54 PM
Rhod Rhod is offline
 
Join Date: Aug 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But if you moved the forums/closed the forums people should not even be able to see thus negating the need for the forward except for the main forward which is a simple redirect that I posted.

You could even just close the boards and on the message tell them where to go for the new forums.
Reply With Quote
  #6  
Old 06-07-2003, 11:02 PM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

People still access the site via different URLs formed on different scripts (showthread.php, quiz.php, etc....)

They ALWAYS get the "board closed go to new forums" message, but precisely this is WHY I want the redirection, so instead of "go to mynewdomain2.COM they'll get to the REAL thread/quiz/whatever they were looking for.
Reply With Quote
  #7  
Old 06-10-2003, 05:26 PM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No1?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:58 PM.


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.03747 seconds
  • Memory Usage 2,213KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete