# Rewritebase / not in effect

**URL:** <https://help.nextcloud.com/t/rewritebase-not-in-effect/1531>\
**Category:** ℹ️ Support\
**Created:** [July 10, 2016, 4:00pm UTC](https://help.nextcloud.com/t/rewritebase-not-in-effect/1531 "2016-07-10T16:00:23Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![Ark74](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ark74/32/2071_2.png) [@Ark74](https://help.nextcloud.com/u/Ark74)\
**Post date:** [January 28, 2017, 11:40am UTC](https://help.nextcloud.com/t/rewritebase-not-in-effect/1531/23 "2017-01-28T11:40:56Z")

</div>

The files that need to be modified are:

- nc/.htaccess \<-root
- nc/config/config.php \<- www(/-data/run)/http/apache

The issue is that they have different permissions, one is root owned, the other web server owned.  
Also occ will run only with web server permissions.

So change permissions to .htaccess first, then run occ, and back again to secure .htaccess.  
My two cents.

---

_[View the full topic](https://help.nextcloud.com/t/rewritebase-not-in-effect/1531)._
