i have been having a few issues lately. My first is that my page formatting is coming up plain text
the site is ditwiki.com
MediaWiki | 1.25.1 |
PHP | 7.3.13 (cgi-fcgi) |
MySQL | 5.5.62-log |
any help is appreciated
i have been having a few issues lately. My first is that my page formatting is coming up plain text
the site is ditwiki.com
MediaWiki | 1.25.1 |
PHP | 7.3.13 (cgi-fcgi) |
MySQL | 5.5.62-log |
any help is appreciated
See the "Console" and the "Network" tab of your web browser's developer tools for information: "The resource from “http://ditwiki.com/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)."
ok so it seems like my wiki links are pointing to /wiki/ThisPage instead of /ThisPage i know this is a simple fix but i cant remember how to do it
but now when i try to go to the login page i get this error
Jump to navigationJump to search There is currently no text in this page. You can search for this page title in other pages, [index.php?title=Special:Log&page=Index.php search the related logs], or [index.php?title=Index.php&action=edit create this page].
that seems like a combination of rewrite rules being wrong and $wgServer (and maybe $wgScriptPath) being wrong.
Does this help? these are my settings currently
$wgScriptPath = ".";
$wgScriptExtension = ".php";
$wgArticlePath = "/$1";
$wgServer = "localhost";
here is my htaccess
RewriteEngine On
AddType x-mapp-php5 .php
DirectoryIndex index.php
RewriteRule ^(.*)\&(.*)$ $1\%26$2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php?title=$1 [L,QSA]
RewriteRule ^$ /Main_Page [R]
well for starters, wgServer should include a protocol (http://localhost or https://localhost
wgScriptPath should not be ".". Just make it be the empty string ""
Im not sure what RewriteRule ^(.*)\&(.*)$ $1\%26$2 does in practise but i suspect that might cause problems
If you set $wgServer = "localhost";, your wiki will only be accessible from "localhost" (the own server) and not from external clients.
You should set $wgServer to the public accessible URL of the wiki (probably ditwiki.com).
Looks like you've already fixed that. You should look at Manual:Combating spam, since it seems your wiki is being attacked by spambots.