Static Pages

General plugins (Local) ::: local_staticpage
Maintained by Logo "Moodle an Hochschulen e.V."Moodle an Hochschulen e.V., Alexander Bias
Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
Latest release:
3937 sites
178 fans
Current versions available: 18

We have seen Moodle installations where there was a need for displaying static information like an imprint, a faq or a contact page and this information couldn't be added everything to the frontpage. As Moodle doesn't have a "page" concept, admins started to create courses, place their information within these courses, open guest access to the course and link to this course from HTML blocks or the custom menu.

We thought that this course overhead doesn't make sense, so we created this plugin. It is designed to deliver static HTML documents, enriched with Moodle layout and navigation as a standard Moodle page which exist outside any course. Static pages will be available on catchy URLs like and can be linked from Moodle HTML blocks, from your Moodle theme footer and so on.

Using this plugin, you can create information pages within moodle, but without misusing a whole course just for showing a textbox. It is not meant as a fully featured content management solution, especially as you have to work with raw HTML, but it is quite handy for experienced admins for creating some few static pages within Moodle.

Please see README file for details about the usage and features of this plugin.

No support in the comments section on this page

Please note that we don't provide any support for this plugin in the comments section on this page.

We appreciate your commendation and reviews for this plugin in the comments. For bug reports and support requests, please read the extensive information in the plugin's README file first and create, if needed, a ticket in the bug tracker which is linked below.

Thanks for your cooperation.


Screenshot #0


Logo "Moodle an Hochschulen e.V."
Moodle an Hochschulen e.V. (Lead maintainer): Maintainer
Alexander Bias: Maintainer
Ulm University: Initial Maintainer
Kathrin Osswald: Developer
Please login to view contributors details and/or to contact them

Comments RSS


  • Sat, Aug 23, 2014, 1:35 AM

    please look above at the comment from Darrel Tenter from Nov 2013. He posted two slightly different rewrite rules which might work for Moodle installations in subdirs.

  • Sat, Aug 23, 2014, 6:35 AM
    Hi Alex,
    Thank you, I have one last question from hosting, is the mod compatible with 2.7 ?
  • Sat, Aug 23, 2014, 1:12 PM

    did it work?
    Could you please post the working RewriteRule here so I can add it to the README file?

    The current module version works with 2.7. The dedicated 2.7 version will be posted within the next days to the Plugin repository.

  • Sat, Aug 23, 2014, 1:12 PM

    did it work?
    Could you please post the working RewriteRule here so I can add it to the README file?

    The current module version works with 2.7. The dedicated 2.7 version will be posted within the next days to the Plugin repository.

  • Just wondering . . .
    Wed, Nov 5, 2014, 8:27 AM
    I'm unclear from here if you need to have your own access to the server maybe via FTP to set up the pages.
  • Wed, Nov 5, 2014, 2:50 PM

    yes, at the moment you have to be able to upload the static page files directly to a directory on your server. If you don't have direct access to the files on your server, you won't be able to use this plugin.

    There's a plan on our roadmap to support in-browser uploads for static page files. But it has no priority...

  • Wed, Apr 29, 2015, 5:48 PM
    Hello Alexander
    we have a problem with the plugin. We have installed it accordingly you're documantation Added a rewite rule in the .htaccess file in the html dir.
    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule ^/static/(.*)\.html$ /local/staticpage/view.php?page=$1&%{QUERY_STRING} [L]

    When we turn on the option Force Apache mod_rewrite we get an error:
    error: File does not exist: /usr/local/moodle/, referer:

    could you help us solving this problem

    kind regards
  • Thu, Apr 30, 2015, 2:31 AM
    Hi Ed,

    I know from several feedbacks that the rewrite option is not simple to setup and to use.

    Does the plugin work without switching the "Force Apache mod_rewrite" setting on?

  • Thu, Apr 30, 2015, 1:06 PM
    Hello Alexander
    yes. the rest of the plugin works fine. All the documents are added, except for,
    The document should be available to at the following clean URL, but actually a browser won't be able to download and view it (perhaps there is something wrong with your webserver or mod_rewrite configuration - see README file for details):

    I have tested the rewrite rule at works fine
    Do you have any suggestions??

    Thanks in advance

  • Tue, May 5, 2015, 7:19 PM
    Hi Ed,

    sorry for the late reply.

    I'd like to ask once again as it's not completely clear to me:
    - If you turn the "Force Apache mod_rewrite" setting off, can you display a static page in Moodle?
    - Where does the "error: File does not exist: /usr/local/moodle/, referer:" error message appear? On the Moodle settings page or when you try to open the static page in your browser?

  • Wed, May 6, 2015, 1:55 PM
    Hello Alex,
    sorry for not being clear.
    When the "Force Apache mod_rewrite" setting is off we can display the static pages.
    The error is from the apache log and in the browser there is a message 404 error.

  • Wed, May 6, 2015, 3:30 PM
    Hi Ed,

    ok, if you can use the plugin without the rewrite rules, then the plugin is basically working and I can only provide limited support from here on because the rewrite problems are too heterogenous to discuss them in detail here...

    The Apache error message tells you that it is looking for a file /usr/local/moodle/ and that file does not exist.

    If you use the rewrite rule from and have built a URL for the static page like, I would assume that the rewrite rule is _not_ in effect in your webserver because your webserver tells you that it can't find a file called "static" in your webroot - it does _not_ rewrite the URL to /local/staticpage/view.php?page=faq as it should. So, it's no problem of Moodle or the plugin, but of your webserver.

    At this point, I would like to ask you to dig into your webserver configuration to see what's going wrong or ask someone who knows your environment better than I.

  • Thu, Jul 2, 2015, 9:08 PM
    Worked perfectly. Thank you!
  • Sat, Jul 11, 2015, 8:22 PM
    In the Document directory shows me that it found the folder, but when i click on the links under the Document list, it gives me 404 Not found.
    Any ideas?
  • Sun, Jul 12, 2015, 4:17 AM
    please have a look at the comments above, I have explained basic pitfalls with the plugin several times.
    My first question, as always, is if the plugin works without mod_rewrite, i.e. do the URLs containing /local/staticpage/view.php... work?

Please login to post comments