moose1 Posted January 15, 2013 Share Posted January 15, 2013 Hello, I have a landing page for several sections of our website that are "special features." http://www.keene.edu/featured/ Is there a way in the Pwire CMS to make the landing page invisible or re-direct elsewhere while leaving its children published? I'd like to prevent people from walking up the directory tree to the landing page. I know I can do this with a simple Apache rewrite rule, but was wondering if there's a way to do in Pwire as well. Thanks! Link to comment Share on other sites More sharing options...
Wanze Posted January 15, 2013 Share Posted January 15, 2013 Do you want for example to redirect always to the first child of a landing page? You could give your landing pages a template "redirect" and in the template file: $session->redirect($page->children->first()->url); This would redirect you to the first child-page 1 Link to comment Share on other sites More sharing options...
moose1 Posted January 15, 2013 Author Share Posted January 15, 2013 Hi Wanze, Not exactly, although that would be very useful in other instances. In this case, the landing page is really just an index that is not meant to be visible, whereas its children need to be published and linked to from other sections of the site as well as from various marketing material, print and electronic. Thank you for the redirect code, however. I can make use of that, too. Link to comment Share on other sites More sharing options...
diogo Posted January 15, 2013 Share Posted January 15, 2013 if you don't assign a file to it's template, the page will show a 404 redirect Link to comment Share on other sites More sharing options...
Soma Posted January 15, 2013 Share Posted January 15, 2013 It's exactly what wanze posted. There's no other way than redirect your home to a subpage. It's same as if you would add a redirect in your htaccess. Link to comment Share on other sites More sharing options...
moose1 Posted January 15, 2013 Author Share Posted January 15, 2013 Thanks, all. I've decided to just re-direct the landing page with an Apache re-write rule. I will still be able to see the page if necessary through a back-door. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now