Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Shared hosting Apache PCRE .htaccess file for personal MediaWiki websites
A shared hosting based Apache PCRE
public_html/.htaccess file for a website with the common features:
- MediaWiki based (most of the website interaction is backendish --- there barely are any frontend behaviors anywhere)
- Unlike most MediaWiki websites, doesn't have a url directory such as example.com/wiki/SOME_COMMON_WEBPAGE
- Relevant visitors to it should always be redirected from HTTP to HTTPS and from WWW to NON-WWW
Code to review (apparently works after more than two testings)