# Sinon le reste marchera, sauf les clients OC/NC
<IfModule !mod_rewrite.c>
	# FallbackResource has a bug before Apache 2.4.15, requiring to disable DirectoryIndex
	# see https://bz.apache.org/bugzilla/show_bug.cgi?id=58292
	# and https://serverfault.com/questions/559067/apache-hangs-for-five-seconds-with-fallbackresource-when-accessing
	DirectoryIndex disabled
	DirectoryIndex index.php

	# Redirect non-existing URLs to the router
	FallbackResource /_route.php

	# FallbackResource does not work for URLs ending with ".php"
	# see https://stackoverflow.com/a/66136226
	ErrorDocument 404 /_route.php

	# NextCloud/ownCloud clients cannot work without mod_rewrite
	<IfModule mod_alias.c>
		Redirect 501 /remote.php
		Redirect 501 /status.php
	</IfModule>
</IfModule>
