MediaWiki ShortURL on CentOS 7

Good afternoon. I need some help.

I’ve installed the most recent version of MediaWiki, MediaWiki 1.30.0 which installed just fine.

However, I am trying to get rid of the index.php in the URL (IE:

I’ve tried all variants of the ShortURL process that I can find, and none of them work. I can get them to redirect to wiki/ but it doesn’t actually show content; I get a ‘not found on this server’ error. So something somewhere is pointing incorrectly.

Anyone successfully done this on a CentOS 7 fully updated build?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I’m running Apache/httpd. I don’t have a line like that in my stuff.

I do, however, have a rewrite that seems to be working from the setup of the SSL from Let’sEncrypt, which seems to be working.

I also changed the option in the general httpd.conf file as another tutorial had suggested.

It sounds like rewrites are not enabled on your web server. If you are using Apache you will need to set the proper permissions in your configuration so that the web server will follow the directives that are stored in .htaccess files.

You’ll want to review your virtualhost definitions in /etc/httpd/sites-enabled and replace

AllowOverride None


AllowOverride All

and then restart Apache with:

sudo service apache2 restart

If you are running Nginx instead of Apache, let us know as that can involve a bit more configuration.