The step you’re missing is to change the mod flag like so:
sudo a2enmod rewrite
Also you’ll need to change the .htaccess; refer to this Stack Overflow post
Related Posts:
- Prevent WordPress from abbreviating-long-slugs…-in-the-admin
- Permalinks Question: Adding a prefix ONLY in front of the posts
- Change website URL without breaking links or images? WP 3.3
- Permalinks not working (.htaccess is writable)
- Attachment page 404 not found when image is attached to post
- How can I link a file in admin with a button?
- Attachment Page Permalink/URL Rewrite Issue. How to change the actual rewriting?
- how to link post-thumbnail to original img in a lightbox?
- Stop Images Linking to Themselves?
- Change Buddypress Admin Profile Page Permalink
- Image URL and size
- How to remove the link of an image on WP 4.2
- Permalinks Question: Adding a prefix ONLY in front of the posts
- Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)
- How to search for images and get it’s link?
- Image upload ruined my links
- Mystery ghost page not appearing in Admin
- Support Gallery link to pages
- Image not Showing (Can see image in inspect element)
- Change media item permalink
- What is the difference between get_permalink vs get_the_permalink?
- Is the permalink structure /%post_id%/%postname% faster or slower than just /%postname%?
- How can I force WordPress to redirect to canonical permalinks?
- Remove subfolders from URL
- Changing pemalink structure to /%post_id%/%postname%/
- htaccess or redirect to cloak portion of a link?
- WordPress Permalinks %postname% for RSS2 Feed URL
- remove permalink trailing slash
- Use Single Blog Post as Site Front Page Without Redirect
- wordpress permalinks tweeks
- generate custom permalink based on a custom field
- How to get wordpress link to fully evaluate when coming from facebook
- Getting links to work the same on development and production
- Add filename to attachment page url
- Change author slug and functionality
- Setting up two separate blogs while using WordPress as a CMS
- Changes to .htaccess not updating the file (old rules still take effect)
- Custom theme navigation
- get permalink and append it
- How to redirect to correct pages after permalink structure change
- Moving local wordpress page to a real server subdomain broke my permalinks?
- Only plain permalinks working
- next_posts_link URL does not include name of custom post type
- Media Gallery Images – safe to change permalink?
- redirect/ %category%/%postname%.html to /%category%/%postname%
- WordPress disallows changing page to a specific permalink
- Custom permalink leads to index page
- Permalink Doesnt Work – URL Not Found
- WordPress 4.4 old permalink redirect
- 404 when going to /blog
- WordPress keeps giving me the wrong permalink
- Permalinks 404 error with HTTPS host
- Mirror content based on URL slug
- Empty permalinks settings in .htaccess
- Rewriting single post url; add_rewrite_rule problem?
- WordPress permalink prefix
- Hierarchy of Subcategories on Permalink (bug?)
- curl problem or permalinks
- Multiple permalinks
- RSS feed link on archives page not working
- Order custom post type posts by custom field with pretty URL
- Show category name in the post URL only for specific categories
- custom query var NOT working on a plain permalink: http://10.8.10.9/?page_id=1774/?location=968&floor=1
- How to flush Global query variables in wordpress?
- How to disable permalinks to some custom post content?
- post permalinks with dot in url don’t resolve to correct page template
- How to add a base/front slug/url to specific post types?
- How to use page jumps to top of banner and page title?
- Permalinks problem woocommerce no separating slash between categories
- how to get permalink
- Change permalink to attachment
- Why does enabling Permalinks make pages not found?
- Permalinks by Post Name Are Not Working
- Adding a ‘style=’ bit to image_send_to_editor output
- WordPress permalink change causes all incoming links to give 404 errors
- Change url of page according to my requirements in wordpress
- Is there any way to modify images from a theme using the web interface?
- I use wordpress wp-page navi
- Multiple Taxonomy Items for Separate URLs
- MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn’t help
- URL gives 404 error of my subfolder site when i change permalink
- home page slug editor missing from WordPress
- Permalink issue with WordPress Site at domain root and another WordPress Site in a Subfolder
- Custom optional parameter in page URL
- Posts containing a specific tag and a category in one permalink
- Custom permalink question
- Post redirected to page with same name but DIFFERENT permalink
- permalink to single page
- changing permalink gives 404 error for old links
- Uppercase vs. Lowercase page slugs
- How do you intercept the page requests in WordPress?
- Pretty Permalink for Search Queries Not Working
- WooCommerce product permalinks
- How to update permalink on the fly?
- Rename category part the permalink without .htaccess
- get_permalink to attachment not working
- Performance and styles not working fine after changing permalink structure
- Add additional URL variations for a Post
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup
- How to Set Both Category and Sub-Category Level at Root. It should also obey post rule as /category/sample-post and /sub-catgeory/sample-post?