Bonjour,
J'ai une page html "contactus.html", j'aimerais que la page soit accessible via https://khabech.com/static/contactus.html au lieu de https://khabech.com/local/staticpage/view.php?page=contactus
Merci.
Bonjour,
J'ai une page html "contactus.html", j'aimerais que la page soit accessible via https://khabech.com/static/contactus.html au lieu de https://khabech.com/local/staticpage/view.php?page=contactus
Merci.
Bonjour,
A cet effet on peut mettre le fichier contactus.html dans le dossier moodle/static, mais je ne suis pas sûr que c’est acceptable de point de vue de la sécurité.
Alexandre
Bonsoir,
D'après ce que l'on peut lire dans le fichier README qui accompagne le plugin, il faudrait modifier la configuration Apache, si vous le pouvez, ou ajouter un fichier .htaccess si cela fonctionne chez votre hébergeur.
### Using mod_rewrite local_staticpage is able to use Apache's mod_rewrite module to provide static pages on a clean and understandable URL. If you are running Moodle in the root of your webserver, please add the following to your Apache configuration or your .htaccess file in the Moodle directory: ``` RewriteEngine On RewriteRule ^/static/(.*)\.html$ /local/staticpage/view.php?page=$1&%{QUERY_STRING} [L] ``` However, in some Apache configurations the following rule will work (without the leading slash - for details, please refer to http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule): ``` RewriteEngine On RewriteRule ^static/(.*)\.html$ /local/staticpage/view.php?page=$1&%{QUERY_STRING} [L] ``` Now, the static pages are available on http://www.yourmoodle.com/static/[pagename].html
Christian
Bonjour,
Merci, je vais l'essayer.