MediaWiki ShortURL on CentOS 7

April 12, 2018 70 views
Configuration Management Miscellaneous CentOS

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: https://wodfanprojects.custom-gaming.net/mw/index.php/Main_Page)

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?

2 Answers

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.

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.

Have another answer? Share your knowledge.