Help talk:Redirects

Discuss Help:Redirect page here:

Dynamic Redirect Using a Template
I would like to do the following:
 * 1) REDIRECT

This can be useful in many situations ie you can have one page that has only the text name of the US president, lets call that page PUSA, and then the article "United States" can reference that page and also the page "President Of The United States" would redirect automatically using: #REDIRECT

This doesn't work for me currently on mediawiki 13.

--80.179.206.193 15:06, 24 June 2009 (UTC)

Redirect to an external website
How do you redirect to an external website ?

I would love to be able to make an image clickable to an external website.

--83.209.82.108 - 11:44, 24 December 2007


 * I don't think this question really relates to redirecting. You want to link, to an external website, and you want to create a click-able image. See Help:Links. You can't easily make an image clickable, though is it possible using rather ugly Template:Click tricks. A straightforward text link appearing below an image, is more easily do-able with normal wiki text.
 * If you are interested in redirecting to external websites. Well you can't do that either. It's not really the kind of thing the wiki syntax is designed to let you do. Part of the reason might be that it would be too easy to abuse.
 * -- Harry Wood 14:55, 24 December 2007 (UTC)

Only if your Wiki is in Intranet use and you are NOT worried about security: alfa

 document.location.href=document.getElementById('redirectme').href --Analienholakres3 12:19, 22 December 2008 (UTC)

interwiki example
Example with MySQL to enable a redirect to a forum, using interwiki: INSERT INTO interwiki (iw_prefix, iw_url, iw_local, iw_trans) VALUES ("helpforum", " http://www.mysite.com/forum/ ", 1, 0); Then you can put the redirect tag in the Help page in the sidebar:
 * 1) REDIRECT helpforum:

redirect seems to work if it's the first thing on a page
we can store other information below the redirect line, and only see it when clicking on the back link from the redirected target page peblusto 11:41, 28 December 2007 (UTC)

Viewing a redirect
i propose the following rewording for this section Help:Redirects peblusto 11:41, 28 December 2007 (UTC):

After creating a redirect, the wiki automatically redirects a browser to the target page. However there is a link displayed near the top of the target page. Click this to go to the redirecting page. On the redirecting page, you can do all the things that any other wiki page allows. You can go to the associated discussion page to discuss the redirect. You can view the history of the page before the redirect was put in place. You can edit and change the redirect, and you can revert to an older version to remove the redirect.

How I can redirect the page to an external page?
This comment not same as the 1st comment about, what I needs is when a user click on the About at the footer, it will open the About page, then redirect to my existing about in an other site. And also many other link content is existed in my other sites.

I know I can do it by editing the script code, but I would like to let it as is and using redirect for this purpose, so anytime I want to change the location of content, I just needs to change the redirect, no needs to go to the script code, edit and upload it again.

Regards,

117.5.159.152 02:26, 26 February 2008 (UTC)

Redirecting images
Hi! We were redirecting some images (icons) to articles, but it seems the behaviour changed in the current version; the redirects are just shown now and not applied. Bug or feature? For us it was very nice to be able to redierct images. Hum. 79.193.235.2 21:39, 12 May 2008 (UTC)

Redirection import
When we use the mass import special page, if the content of a page is a redirection, it isn't considered this way (just as plain text): to be "recognized", you have to edit and save each page manually (no need to change its content).

It is the same when we try to save afterwards the page with some test extensions to bypass this problem (for exemple using doEdit method of class Article).

Has anyone found a way either to import redirection pages (and have them directly recognized) or knows how to save a page in a extension so that it is recognized as a redirection page ?

Thanks by advance for any idea :)

-- Gizmhail 15:58, 6 August 2008 (UTC)

Table of external redirects
For ease of maintenance of external links, I would like to create a table / list / page of external URLs and then be able to refer to these web sites by local name. This could possibly be done with a complex template. Anything simpler that could be organised? Something similar to interwiki maps?

--Ironfrown 11:45, 14 September 2008 (UTC)


 * An interwiki link works fine for this. So does a simple template. —Emufarmers(T 21:03, 14 September 2008 (UTC)

Redirecting to a version (especially a flagged, reviewed revision) of a page
I believe versions cannot be addressed in wiki syntax (only through URLs, which makes internal pages equivalent to external links). Thus a redirect to a specific version is most likely not possible. Can the normal wiki page link syntax be somehow extended to deal with versions? Where would be a good place to discuss this? --G.Hagedorn 10:04, 3 June 2009 (UTC)

Redirect from File namespace problem
I am trying to redirect from a file namespace - on many mediawiki installations this is possible, but on the current one, I am running into blocks that I can't figure out, can someone direct me? Best, MarkDilley