InMotion Hosting Support Center

When removing pages from your DokuWiki site, you will need to set up a redirect to prevent users from getting 404 not fopund errors.  Sometimes when users bookmark pages or when Google caches a removed page people will get 404 not found pages. In order to redirect a page, you will need to use a plugin called "Page Redirect". This article will explain how to install the "Page Redirect" plugin and how to set up a redirect to a page that was removed.

Installing the "Page Redirect" plugin

In order to make any redirects in DokuWiki, you will need to use the "Page Redirect Plugin". This section will give you the steps on how to install the "Page Redirect Plugin."

  1. Click the following link to get the plugin URL.

    Page Redirect Plugin

  2. textRight click the download link and copy the Link location. (You can also click the download link and get the url from the browser.)

    The URL you get for the plugin should be the following:

  3. Log into DokuWiki.

    Click the Admin link at the top.

    In the Administration Click Plugin Manager.

  4. URL for the Page Redirect Plugin DokuWikiIn the "Download and install a new plugin" box, paste the url you obtained from the site in the text box.

    Click Download.

  5. Installed Page Redirect plugin DokuWikiThe Plugin should show as "Successfully installed" and the Page Redirect plugin will be listed in the Installed plugins.

    Click Save.

Now that the "Page Redirect" plugin was successfully installed, you can now proceed to the next section to learn how to redirect the pages in DokuWiki.

Redirecting a removed page

Redirecting pages in DokuWiki cannot be done without plugin code being inserted into the page that is being redirected. The following section will explain how to use the "Page Redirect" plugin code for redirecting a  removed page to an existing page.

  1. Log into DokuWiki.
  2. Click Recent Changes link DokuWikiClick the recent changes link at the top right side of your DokuWiki..
  3. Click the removed page in DokuWikiOn the Recent changes page, find the page you want to redirect. (In this case the "community_ideas" page will be redirected).

    Click the page.

  4. Go TO the old Revisions in DokuWikiSelect the Old Revisions link on the left that is the clock icon.
  5. Select Removed page in DokuWikiFind the removed page and select it.
  6. Click Old Revision in DokuWikiOn the right side, click the pencil to "Edit this page."
  7. Code for Page Redirect plugin DokuWikiEnter the following code in the page and save it.

    The redirect code "namespace:page" is an example. You will need to change the namespace name (If there is one) and the page name for the redirect to go to the correct page. In this case the redirect is going to a main root page called "helping_community" so the code we are inserting in this example is the following.


    Redirected page in DokuWikiNow when visiting my "Community ideas" page, the site is redirected to the "Helping the Community page". You will see a "You were redirected here from community_ideas" in the page.

Was this article helpful?
Continued Education in Course 102: Writing content for DokuWiki
You are viewing Section 5: Redirecting pages in DokuWiki
Section 4: How to delete and rename namespaces in DokuWiki
Section 6: How to format content in DokuWiki

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!