Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2003, 10:29 AM
stark427's Avatar
stark427 stark427 is offline
 
Join Date: Aug 2002
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Moving the forums to another directory + redirecting in index.php ??

Hello all.
I'm planning to install VBHome lite but prior to this I have some simple (I hope) questions on 2 things.

I now have my forums at the root directory of my domain name.

so it is:

www.mydomain.gr

I want to move the forum to :

www.mydomain.gr/forum

I've been told that the only thing I have to so is to create the FORUM directory and move all the files and dirs into this...

Then just update the forum URL at the admin panel.
is that right?

Something else.
That will leave me with a blank root page.
So, before I install VBHome lite, I want to make an index.php page (to put it at the root) that will be redirecting to the /forum/index.php .

How can I do this?
I mean, Can I do this just by opening Notepad, creating a simple page - putting a javascript redirect script at the HEAD and saving it as index.php ???

Is this all I have to do?

thanx in advance.
Reply With Quote
  #2  
Old 03-04-2003, 10:34 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

moving forum: yes, it will work with the steps you mentioned

your new redirect index.php:
PHP Code:
<?php
header
("Location: forum/index.php");
?>
that should be all
Reply With Quote
  #3  
Old 03-04-2003, 10:34 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just move the files to the dir and update the url in you admin cp. Then stick this in a .php file and name it index.php to redirect:

PHP Code:
 <?php 
header 
("Location: forum/index.php" ); 
exit; 
?>
Reply With Quote
  #4  
Old 03-04-2003, 10:35 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xenon, you beat me this time
Reply With Quote
  #5  
Old 03-04-2003, 10:37 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anime, not only this time
Reply With Quote
  #6  
Old 03-04-2003, 10:38 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well you know what they say, great minds think alike . And i will beat you next time *sets up bot to monitor xenon's surfing activitys*
Reply With Quote
  #7  
Old 03-04-2003, 10:52 AM
stark427's Avatar
stark427 stark427 is offline
 
Join Date: Aug 2002
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank tou guys

I appreciate it.
Reply With Quote
  #8  
Old 03-04-2003, 08:57 PM
stark427's Avatar
stark427 stark427 is offline
 
Join Date: Aug 2002
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[edited]

I have made the changes and everything seems ok.

One problem only :

In some posts I have links to other posts/forums, within the forum.
They don't include the directory "forum" so they lead to non-existant locations ....

I can fix those that are in the board by adding the word "forum".

But I know some other sites have links to some specific subforums of my site.

So in order for those outbound links to work, I'm trying to find a way so that everytime someone tries to go to such a link (which leads to nowhere) he would be redirected to the main page of my site.

Could this be done?
any ideas?

thanx
Reply With Quote
  #9  
Old 03-05-2003, 06:56 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, it would be easier to use a replacement of all those old links

the_sisko has released such a hack, maybe it can help you
Reply With Quote
  #10  
Old 03-05-2003, 07:59 AM
stark427's Avatar
stark427 stark427 is offline
 
Join Date: Aug 2002
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xenon
hmm, it would be easier to use a replacement of all those old links

the_sisko has released such a hack, maybe it can help you
Xenon you mean this?

https://vborg.vbsupport.ru/showthrea...threadid=44553

Is there any other way, without hacking?

thanx again
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 02:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04152 seconds
  • Memory Usage 2,252KB
  • 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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete