Thanks, I tried what you said, first I will give you the set up I had of my directories before changing what you said
www also known as public_html is my main directory.
under www I had
-cgi_bin
-forum
In forum was where all the files for my forum were
I did what you suggested the following way.
I went into the forum directory and I moved the index.php file into the www main directory so
under www I now have
-cgi_bin (directory)
-forum (directory)
index.php (file)
I then edited that file like you said and added the line:
Code: Select all
header("Location: http://www.yourdomain/forums/");
after this I went to my main domain (
http://www.mydomain.com ) and I got the following error:
Warning: main(./extension.inc): failed to open stream: No such file or directory in /home/moneyonf/public_html/index.php on line 25
Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/moneyonf/public_html/index.php on line 25
Warning: main(./common.): failed to open stream: No such file or directory in /home/moneyonf/public_html/index.php on line 26
Warning: main(): Failed opening './common.' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/moneyonf/public_html/index.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at /home/moneyonf/public_html/index.php:25) in /home/moneyonf/public_html/index.php on line 28
Fatal error: Call to undefined function: session_pagestart() in /home/moneyonf/public_html/index.php on line 34
I may have not added the line you suggested in the right place.
Where should I add that line? is there something else I have to do?