Redirect
Short Description
Performs a "301" redirect from a page with optional URL mapping
Performs a "301" redirect from a page with optional URL mapping
Description
The Redirect module performs a "301 Permanently Moved" redirection, i.e. it tells a web browser to request another web page.Attributes
attribute | required | allowed values | default | description |
---|---|---|---|---|
destination | yes | page-name or URL | none | where to redirect? |
Mapping
If the destination attribute ends with a slash, e.g. destination="start/" or destination="http://www.example.com/", the current URL will be mapped to the destination in the following way. The code for the module would be:[[module Redirect destination="http://www.example.com/base/"]]
from | to |
---|---|
http://your-wiki.wikidot.com/redir | http://www.example.com/base/ |
http://your-wiki.wikidot.com/redir/mapped-path | http://www.example.com/base/mapped-path |
http://your-wiki.wikidot.com/redir/mapped-path/file1.html | http://www.example.com/base/mapped-path/file1.html |
Preventing the redirect
If the Redirect module redirected the browser always there would be no way to edit the actual page. The solution is to pass an extra parameter to the module in the URL as follows:http://your-wiki.wikidot.com/page-with-redirect/noredirect/true
There should be an information box where the module is placed.
Working with the Redirect module might not be very convenient but even of you have to do this you will not configure it every day ;-)