Redirecting from inner folder
Posted: Sat Oct 03, 2009 4:52 am
Sorry for the newbie question.
I have created a website It includes more than 7000 pages and more than 200 inner folders.
I'm using simple including file(header.php, right.php, left.php, bottom.php, footer.php).
in all the 7000 pages bottom, right, left and footer.php is the same and I might update this part in future.
Now the problem is when I go to the inner folder I want to redirect the pages to root directory.
suppose I have folder named "A" and theres is some files like "file1.php", fle2.php.
I created the "file1.php" like this.
<?php
include("header.php");
include("left.php");
?>
Contents content content content
<?php
include("right.php");
include("footer.php");
?>
but when I click on the "aboutus" button in the "file1.php" its showing file not found. becuase my aboutus.php in the root directory not in the folder "A".
How will I solve this problem.
I want to use this redirection function all my 200 folders.
any advise suggestion would be appreciated.
Thanks
sherone
I have created a website It includes more than 7000 pages and more than 200 inner folders.
I'm using simple including file(header.php, right.php, left.php, bottom.php, footer.php).
in all the 7000 pages bottom, right, left and footer.php is the same and I might update this part in future.
Now the problem is when I go to the inner folder I want to redirect the pages to root directory.
suppose I have folder named "A" and theres is some files like "file1.php", fle2.php.
I created the "file1.php" like this.
<?php
include("header.php");
include("left.php");
?>
Contents content content content
<?php
include("right.php");
include("footer.php");
?>
but when I click on the "aboutus" button in the "file1.php" its showing file not found. becuase my aboutus.php in the root directory not in the folder "A".
How will I solve this problem.
I want to use this redirection function all my 200 folders.
any advise suggestion would be appreciated.
Thanks
sherone