Product | Version |
---|---|
MediaWiki | 1.35.1 |
PHP | 7.3.25 (cgi-fcgi) |
MySQL | 5.7.26-29-log |
ICU | 63.2 |
Shared hosting, Siteground
Apache/Nginx Compatible Server
.htaccess file has been created to assist in link shortening.
I'm having some trouble getting VisualEditor (herein referred to as VE) to work. It worked perfectly out the box when I installed MediaWiki and activated it, but the second I tried to shorten links (hide the index.php?title=main_page), it broke. Here are the steps I took:
- Installed MediaWiki 1.35.1.
- Created .htaccess file to activate rewrite capabilities. (VE worked at this point)
- Added "
$wgScriptExtension = ".php";
$wgArticlePath = "/$1";
"
When I added that code to shorten the link from "https://example.net/index.php?title=Main_Page" to "https://example.net/Main_Page", I suddenly got the 404 error. Removing those lines of code results in the extension working as expected.
I've added my two cents to this bug report, as it's pretty close to if not exactly the issue I'm going for. Only difference is my .htaccess file doesn't harm the functionality of VE. There are many bug reports on phabricator with the same issues. I've tried the steps outlined in VE's troubleshooting section on the extension page for 404 errors, but nothing seems to work. I don't think I have root access. Any ideas what's going on?