Skip to content

Instantly share code, notes, and snippets.

@matdombrock
Created June 29, 2016 08:47
Show Gist options
  • Select an option

  • Save matdombrock/313c1ce8d33fd9e8a2d4eb32ef08f5ad to your computer and use it in GitHub Desktop.

Select an option

Save matdombrock/313c1ce8d33fd9e8a2d4eb32ef08f5ad to your computer and use it in GitHub Desktop.
Fix broken permalinks on wordpress
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Add the above text to /etc/apache2/apache2.conf
Changing the AllowOverride None to AllowOverride All.
Through SSH run 'a2enmod rewrite'
Then to restart Apache run 'service apache2 restart'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment