Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Post History
By default, MediaWiki serves webpages with index.php and at least one query string but I want to prevent this so to have "short URLs" (my URLs are already quite long due to the site being in Hebrew...
#2: Post edited
Preventing MediaWiki from serving webpages with index.php and its query string/s, not from webserver
By default, MediaWiki serves webpages with index.php and at least one query string but I want to prevent this so to have "short URLs" (my URLs are already quite long due to the site being in Hebrew and webpage names are long encoded in the URL). I have found ways to prevent this behavior via Apache PCRE in `.htaccess` but I would prefer a PHP way if there is one. How to prevent MediaWiki from serving webpages with index.php and its query string/s, but not from webserver (i.e. via PHP)?
#1: Initial revision
Preventing MediaWiki from serving webpages with index.php and its query string/s, not from webserver
By default, MediaWiki serves webpages with index.php and at least one query string but I want to prevent this so to have "short URLs" (my URLs are already quite long due to the site being in Hebrew and webpage names are long encoded in the URL). I have found ways to prevent this behavior via Apache PCRE in `.htaccess` but I would prefer a PHP way if there is one. How to prevent MediaWiki from serving webpages with index.php and its query string/s, but not from webserver (i.e. via PHP)?