how do you ignore the parent?

Feed 5 posts, 3 voices

Avatar
108 posts

Take this link as an example:http://www.?.co.uk/wills/wills/

I want to ignore the first “wills” in the link because i am creating a submenu from within the tree below the parent which includes a will page. This would mean the parents only use is to distinguish areas in the backend for the user.

I would also want to forward any users who hit http://www.?.co.uk/wills/ directly to the first child in the tree ie http://www.?.co.uk/wills/wills/

Any ideas?

 
Avatar
1493 posts

Any help here?

 
Avatar
19 posts

Run away from home.

Grant

 
Avatar
108 posts

Thanks for all your help…ill give it a crack tomorrow and let you know :@)

 
Avatar
108 posts

Didnt work for me :@(

 
Avatar
108 posts

The solution i used is:

<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yourdomain.co.uk/page-to-forward-to.html");
exit();
?>

Put this code into a content area on the page you want to redirect and then change the location in my example to your desired page.