# Apache rewrite to remove index.php

**URL:** <https://help.nextcloud.com/t/apache-rewrite-to-remove-index-php/658>\
**Category:** ℹ️ Support\
**Created:** [June 15, 2016, 8:09pm UTC](https://help.nextcloud.com/t/apache-rewrite-to-remove-index-php/658 "2016-06-15T20:09:43Z")\
**Posts on this page:** 1\
**Showing post:** 33

<div class="post-metadata">

**Author:** ![leo\_yang](https://help.nextcloud.com/letter_avatar/leo_yang/32/5_5575768a8748004e209b776fc1b2916d.png) [@leo\_yang](https://help.nextcloud.com/u/leo_yang)\
**Post date:** [August 28, 2016, 11:33am UTC](https://help.nextcloud.com/t/apache-rewrite-to-remove-index-php/658/33 "2016-08-28T11:33:00Z")

</div>

Hi, I’m with nextcloud 10. fresh installation. installed nc10 on /nextcloud. mod\_env and mod\_rewrite already enabled,and followed steps below:  
sudo vim /var/www/nextcloud/config/config.php  
Add ‘htaccess.RewriteBase’ =\> ‘/nextcloud’,  
sudo -u www-data php occ maintenance:update:htaccess

I still can’t get rid of index.php ,why?

---

_[View the full topic](https://help.nextcloud.com/t/apache-rewrite-to-remove-index-php/658)._
