![]() A simple fix has been applied to this wiki so that redirects are done by the browser by having the wiki send out an HTTP 302 redirect status code. However, this does not alter the URL shown in the browser address bar and so could lead search engines to consider it as duplicate content. R301 Make this a permanent (301) redirect L - Make this the last rewrite rule so that the other rules don't get processed when it matches. In the default MediaWiki installation it is possible to redirect from one page to another by including #REDIRECT ] at the very top of a page. # anything else is to be treated as a title getRevisionTimestamp Get the timestamp of displayed revision. getRevisionId Get the displayed revision ID. getResourceLoader Get a ResourceLoader object associated with this OutputPage. RewriteRule ^/*$ /index.php?title=Main_Page Get the URL to redirect to, or an empty string if not redirect URL set. RewriteRule ^(.+) /path/to/web/directory/$1 ![]() However, because we have some pages which have dots in their titles (and hence their URLs), we had to apply the following rewrite rules: RewriteRule ^(.+)$ /wiki/index.php?title=$1 RewriteRule ^/*$ /wiki/index.php?title=Main_Page To begin with we have these rewrite rules in place: However, an editor should not leave behind the double redirects that they created themselves. ![]() Double redirects are easily fixed by bots, and human editors should devote their efforts elsewhere. Some search backends can rewrite the query into one its thinks gives better results, such as correcting spelling errors.These are some notes about setting up a MediaWiki for use by the Documentation Working Group. The MediaWiki software is not programmed to follow these redirects. However, doing that adds a phrase (Redirected from Main Page) right under the new header, which is unsightly. Type: boolean ( details) srenablerewritesĮnable internal query rewriting. The official way to rename Main Page is by moving the Main Page article to an article with a new name, plus a redirect. Documentation and examples: listsearch (sr) ( main query search) This module requires read rights. Include interwiki results in the search, if available. MediaWiki API help This is an auto-generated MediaWiki API documentation page. Type: integer or max Default: 10 srinterwiki If you received REDIRECT, direct the user to the redirecttarget. When more results are available, use this to continue. Then post to this module with createcontinue and the relevant fields set, and repeat step 4. Values (separate with |): size, wordcount, timestamp, snippet, titlesnippet, redirecttitle, redirectsnippet, sectiontitle, sectionsnippet, isfilematch, categorysnippet, score, hasrelated Default: size|wordcount|timestamp|snippet sroffset Thanks to MediaWiki's case-sensitivity rule (see the sidebar Article Titles and. categorysnippet Adds a parsed snippet of the matching category. Another use for redirects is to support alternate capitalizations. MediaWiki is a free and open-source wiki software. isfilematch Adds a boolean indicating if the search matched file content. sectionsnippet Adds a parsed snippet of the matching section title. Redirect MediaWiki page to external page - Stack Overflow Redirect MediaWiki page to external page Ask Question Asked 9 years, 2 months ago Modified 6 years, 11 months ago Viewed 2k times 2 Id like to redirect a page (on a MediaWiki site) to an external page on the same domain. sectiontitle Adds the title of the matching section. redirectsnippet Adds a parsed snippet of the redirect title. It is written in the PHP programming language and stores the contents into a database. That said, the solution is simple: you need to locally alter. Originally developed by Magnus Manske and improved by Lee Daniel Crocker, it runs on many websites, including Wikipedia, Wiktionary and Wikimedia Commons. is not quite a relevant example, because its not even served by MediaWiki. redirecttitle Adds the title of the matching redirect. MediaWiki is free and open-source wiki software. titlesnippet Adds a parsed snippet of the page title. snippet Adds a parsed snippet of the page. timestamp Adds the timestamp of when the page was last edited. wordcount Adds the word count of the page. This sometimes causes pages to appear as if the user created them, when in reality they only created a redirect that later someone else turned into an article. ![]() Values (separate with |): totalhits, suggestion, rewrittenquery Default: totalhits|suggestion|rewrittenquery srprop Due to limitations with MediaWiki, XTools cannot efficiently determine whether a page was a redirect when it was first created. One of the following values: title, text, nearmatch srinfo You can use the search string to invoke special search features, depending on what the wiki's search backend implements. Search for page titles or content matching this value. ![]()
0 Comments
Leave a Reply. |