vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Moving the forums to another directory + redirecting in index.php ?? (https://vborg.vbsupport.ru/showthread.php?t=49621)

stark427 03-04-2003 10:29 AM

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.

Xenon 03-04-2003 10:34 AM

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 :)

Brad 03-04-2003 10:34 AM

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; 
?>


Brad 03-04-2003 10:35 AM

Xenon, you beat me this time ;)

Xenon 03-04-2003 10:37 AM

Anime, not only this time :p ;)

Brad 03-04-2003 10:38 AM

well you know what they say, great minds think alike :p. And i will beat you next time *sets up bot to monitor xenon's surfing activitys* ;)

stark427 03-04-2003 10:52 AM

Thank tou guys :D

I appreciate it.

stark427 03-04-2003 08:57 PM

[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

Xenon 03-05-2003 06:56 AM

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 :)

stark427 03-05-2003 07:59 AM

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


All times are GMT. The time now is 02:36 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.01107 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete