GetSimple Support Forum
Redirect plugin - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: Redirect plugin (/showthread.php?tid=5070)



Redirect plugin - Carlos - 2013-08-16

This simple plugin allows you to redirect individual pages to other pages (in the site, or external ones).

Usage:

Edit the page you want to redirect and insert this tag in the title, description or tags/keywords field:
Code:
redirect=destination

destination can be another page's slug, or an URL.

Note: if you choose to put that tag in the tags/keywords field, you may prefer to prefix it with an underscore, like:
_redirect=destination
(so that I18N Search doesn't show it in the tag cloud)

Download: http://get-simple.info/extend/plugin/redirect/688/


RE: Redirect plugin - mvlcek - 2013-08-16

(2013-08-16, 18:40:04)Carlos Wrote: Note: if you choose to put that tag in the tags/keywords field, you may prefer to prefix it with an underscore, like:
_redirect=destination
(so that I18N Search doesn't index it as a keyword)

The tag will be indexed by I18N Search, but it will not be displayed in the tag cloud. You will be able to find all redirected pages with http://link-to-search-page?tags=_redirect


RE: Redirect plugin - Carlos - 2013-08-16

(2013-08-16, 20:03:19)mvlcek Wrote: The tag will be indexed by I18N Search, but it will not be displayed in the tag cloud.

Thank you, I didn't express myself well. I've edited the post.

(2013-08-16, 20:03:19)mvlcek Wrote: You will be able to find all redirected pages with http://link-to-search-page?tags=_redirect

That's an unplanned feature :-)


RE: Redirect plugin - Timbow - 2013-08-16

Sounds good.

So if I make a 'dummy' page and redirect to an external url would I have a very easy way of adding an external link to my menu?


RE: Redirect plugin - shawn_a - 2013-08-16

Is there a need for this ? I was playing with adding some special advanced fields to core one of them being an alias or similar, so a page could set an alias, and not have to have a dummy page anywhere. This alias would let us possibly implement actual url slugs without modifying our core use of slug as file id etc.


RE: Redirect plugin - Carlos - 2013-08-16

Examples (well, what I needed this for):
- easily redirecting a slug that has changed but is still indexed by google (and now was showing 404)
- redirecting a page that has been moved to a different domain.


RE: Redirect plugin - Carlos - 2013-08-16

(2013-08-16, 23:15:11)Timbow Wrote: So if I make a 'dummy' page and redirect to an external url would I have a very easy way of adding an external link to my menu?

It would work, if you don't mind that the URL in the menu will be rendered as the dummy page's one.
If the external one is going to be the first or the last item in the menu, I'd rather use the 'traditional' method (inserting it in the template).

[edit] I hadn't seen your very recent post :-)


RE: Redirect plugin - Carlos - 2013-08-17

BTW there is another plugin for this, URI Redirect, but it never worked for me.


RE: Redirect plugin - shawn_a - 2013-08-17

ah so url redirects as well. Yeah that is best handled by a plugin for sure.


RE: Redirect plugin - D.O. - 2013-08-18

great plugin, carlos, I really needed it


RE: Redirect plugin - davetest - 2013-08-21

Is it possible for a future upgrade of this great plugin to have possibility for url redirect to open in a new window please?


RE: Redirect plugin - shawn_a - 2013-08-21

Then it wouldn't be a redirect. Smile


RE: Redirect plugin - xxdex - 2014-01-17

I know how to create a new page in Get Simple Wink it's simple Smile
But how to redirect this page in external serwer.
example:

i want to create a page in menu (back end) name it example "extra link page" and save it without a any content...

In front-end i want when any user click a page named "extra link page" then system will be redirect him to external page..
it's possible and easy than a slug a _redirect=destination ?

i'm see it like that:
i'm create a new page (back-end) and in page options: URL site: i'm paste a url what i whant to relocate from installed cms page. it's possible? or something simmilar ? please help

URI Redirect it's look sense.. but it's not working..

i'm was trying it it get_i18n_navigation
;(


RE: Redirect plugin - yojoe - 2014-01-17

(2014-01-17, 09:22:05)xxdex Wrote: But how to redirect this page in external serwer.
Make yourself familiar with i18n customfield plugin.
Then create a new field for external link to the page you want to redirect from the menu, give it an example name: externalurl
Then create a new template file, name it for example: redirect_template.php
Use below code inside template file
Code:
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location:".return_custom_field('externalurl'));
exit();
?>

All you have to do is:
1. add new page, add it to the menu (page options)
2. paste link into custom field (page options) | edit: don'g forget http:// prefix in pasted link, otherwise it won't work
3. choose external_link template for this particular page (page options)
4. Save page
voilla


RE: Redirect plugin - xxdex - 2014-01-17

(2014-01-17, 20:30:40)yojoe Wrote:
(2014-01-17, 09:22:05)xxdex Wrote: But how to redirect this page in external serwer.
Make yourself familiar with i18n customfield plugin.
Then create a new field for external link to the page you want to redirect from the menu, give it an example name: externalurl
Then create a new template file, name it for example: redirect_template.php
Use below code inside template file
Code:
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location:".return_custom_field('externalurl'));
exit();
?>

All you have to do is:
1. add new page, add it to the menu (page options)
2. paste link into custom field (page options) | edit: don'g forget http:// prefix in pasted link, otherwise it won't work
3. choose external_link template for this particular page (page options)
4. Save page
voilla

it's working!!!! VERY VERY THANK U yojoe!!


RE: Redirect plugin - jwzumwalt - 2017-09-25

Just used this to redirect a menu item "Forum" to an external MyBB Forum site - works wonderful!!!