![]() |
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. |
moving forum: yes, it will work with the steps you mentioned :)
your new redirect index.php: PHP Code:
|
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:
|
Xenon, you beat me this time ;)
|
Anime, not only this time :p ;)
|
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* ;)
|
Thank tou guys :D
I appreciate it. |
[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 |
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 :) |
Quote:
https://vborg.vbsupport.ru/showthrea...threadid=44553 Is there any other way, without hacking? thanx again |
well, you can run the nessesary queries within phpmyadmin, without hacking of course :)
|
Quote:
I have used phpmyadmin only 2-3 times for really simple things, but running queries.... no :rolleyes: If that is of any help : here is the thread URL of the old forum : Code:
http://www.synthpopavenue.gr/forumdisplay.php?forumid=8 Code:
http://www.synthpopavenue.gr/forum/forumdisplay.php?forumid=8 |
normally this would work:
[sql]UPDATE post SET pagetext=REPLACE(pagetext,'http://www.synthpopavenue.gr/','http://www.synthpopavenue.gr/forum/')[/sql] |
I get this error :
Code:
SQL-query : [Edit] |
nice...., tell your mysql to describe the error a bit more, because i don't see an error in this query.
|
May If I try putting the query in text file and run it from there ?
|
hmm, i don't think it would change anything...
can maybe someone other answer that one, i really don't see why this query should have an error??? |
Yes! :D
It worked with the TXT file thanx Xenon |
really?
weird... what version of phpmyadmin did you use? you're welcome :) |
It's version 2.2.0
and MySQL v3.23.55 ( I think) |
maybe that's it :)
you should perhaps upgrade to the newest phpmyadmin version ;) but at least it worked now ;) |
I'm on a shared server (unfortunately), so I will tell my ISP to check it out :)
p.s. After the error, when I edited the query, I noticed that then the query was shown with some extra "\" then when I tried to copy paste here that query - with the extra "\" ... (into code tags) the query showed up normally without the extra "\" :paranoid: Xfiles? Or what? ! :rolleyes: |
ahh, that would explain why i don't see the error ;)
it's a bug in vb2 AFAIK, in vb3 this would be corrected (i hope at least ;)) |
All times are GMT. The time now is 04:05 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|