By ElmerG
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.