Report this

What is the reason for this report?

MediaWiki ShortURL on CentOS 7

Posted on April 12, 2018

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?



This textbox defaults to using Markdown to format your 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.

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

with

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.