jasondrane Posted August 10, 2011 Share Posted August 10, 2011 Hi All, I am curious. Is there a plugin/module to redirect a ¨page¨ to a existing URI in the system. Rather than duplicating the content for two pages, creating a menu selection in two different place for the same page? Link to comment Share on other sites More sharing options...
Soma Posted August 10, 2011 Share Posted August 10, 2011 Hi and welcome not sure if this is what you looking for: http://processwire.com/talk/index.php/topic,171.0.html 1 Link to comment Share on other sites More sharing options...
Adam Kiss Posted August 10, 2011 Share Posted August 10, 2011 Hi Jason, if you're doing it just for a few pages, you don't need any module/plugin; you can do this simply by using templates! Create field 'redirectTo' – customizable, of course Set that field to be 'single page', and select the inputfield you wish Create template 'redirectPage' – again, custom put following code in your template file Create page that links to original page you've made your virtual page Code for your template: <?php /* * Template: redirectPage * * Used to redirect URL adress to other page with 301 HTTP code */ $session->redirect( $page->redirectTo->url ); I actually use this at least once each site. 6 Link to comment Share on other sites More sharing options...
jasondrane Posted August 10, 2011 Author Share Posted August 10, 2011 Hi Jason, if you're doing it just for a few pages, you don't need any module/plugin; you can do this simply by using templates! Create field 'redirectTo' – customizable, of course Set that field to be 'single page', and select the inputfield you wish Create template 'redirectPage' – again, custom put following code in your template file Create page that links to original page you've made your virtual page Code for your template: <?php /* * Template: redirectPage * * Used to redirect URL adress to other page with 301 HTTP code */ $session->redirect( $page->redirectTo->url ); I actually use this at least once each site. Thank you a MILLION times over, Adamkiss! That is exactly what I was trying to do! Cant wait to use it. This is my first project using processwire. I will post a link when its done! Link to comment Share on other sites More sharing options...
AlexL Posted October 6, 2013 Share Posted October 6, 2013 I would also like to say thank you as I've had the exact same query!! Link to comment Share on other sites More sharing options...
davo Posted May 2, 2014 Share Posted May 2, 2014 Just what it was after to take care of old seo incoming links. Cheers Link to comment Share on other sites More sharing options...
Nico Knoll Posted May 10, 2014 Share Posted May 10, 2014 @adam That's my way, too 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