Knowledge Base

Browse our knowledge base for free solutions to common problems

Nexcloud HTTP Rewrites (Remove index.php)

Created On: 14 September 2022
Written by: Ben

Locate config.php:

find / -type f -name "config.php"

Add this to your config.php:

'htaccess.RewriteBase' => '/'

(Path depends on your configuration - maybe /nextcloud)

Update htaccess with the occ command:

sudo -u apache php occ maintenance:update:htaccess

Make sure all modules are enabled with

cat /etc/httpd/conf.modules.d/* | grep mod_env

and

cat /etc/httpd/conf.modules.d/* | grep mod_rewrite

The output line should not start with #

I also restarted my httpd

systemctl restart httpd

 

ICTU LTD is a company registered England and Wales (Company No. 09344913) 15 Queen Square, Leeds, West Yorkshire, England, LS2 8AJ
Copyright © 2025 ICTU LTD, All Rights Reserved.
exit