This sounds like it might be an issue with how the files for the main Apache2 configuration file and those found in the virtual host are written.
Adding the following line to the file * /etc/apache2/sites-available/hostname-le-ssl.conf before
<Directory /var/www/html/hostname/public_html/>
AllowOverride All
Then restart apache2.
$ sudo systemctl restart apache2
The files in /etc/apache2/sites-available are symlinked to /etc/apache2/sites-enabled.
ls -l /etc/apache2/sites-enabled/hostname-le-ssl.conf
lrwxrwxrwx 1 root root 65 May 26 2019 /etc/apache2/sites-enabled/hostname-le-ssl.conf -> /etc/apache2/sites-available/hostname-le-ssl.conf
Related Posts:
- Changing permalinks gives me 404 errors on nginx
- WordPress Permalinks on Mac OSX Server 5 (El Capitan)
- .htaccess file missing from WordPress install directory
- After updating to 4.8 permalinks will not work (all 404)
- Moving local wordpress page to a real server subdomain broke my permalinks?
- Migrated from Windows to Linux. Any bulk methods for fixing case sensitivity?
- wp_publish_post to saved draft, permalinks broken
- curl problem or permalinks
- How to use page jumps to top of banner and page title?
- Add post overwriting permalink from previous post in 4.6
- how to set up wp in folder within static website?
- WordPress switch servers
- Page permalink redirects to home page
- How to make custom page link to root automatically?
- WordPress home page showing 404 error
- Problems loading stylesheet and permalinks after rebooting
- Pretty permalinks for search results with extra query var
- Does WordPress automatically do 301 redirect if I change permalink
- ‘post_type_link’ filter not working
- Update URL Snippet to Canonical Permalink URL
- Broken wordpress permalinks on pages only
- Change website URL without breaking links or images? WP 3.3
- Redirect user if it’s not logged in
- Random Alphanumeric Key URLs
- Add a css class to a taxonomy permalink
- Search result permalink
- Permalinks Structure and 404 Question
- Rewrite URL for results of a custom WP_Query
- Change permalinks with ACF values
- template_include not loading -instead goes to index.php
- Changing Custom Permalink with Filter
- WordPress installation in subfolder not working with nginx
- Confusion about how a URL is being parsed
- Clean install – Changing permalinks in twentyeleven give 404
- Adding page links to content that automatically convert to pretty permalinks?
- Need Help Correct Regular Expression Redirect Code
- issue with setting up permalink programmatically
- WordPress post-name permalink redirects to site.com
- WordPress Pages Redirecting to Root with WordPress Multisite (Sub-Directory)
- Woocommerce subcategory 404
- Reoccurring 404 Errors on all subpages
- WordPress always returning 404 page for a specific url
- WordPress Automatic Update to 3.9.1 breaks Permalinks [closed]
- Static Text in Permalink
- Pre-populate Slug / Permalink with URL
- Permalink changes gives me 404 [closed]
- How do I make 301 redirection from `/%post_id%/` to `/%postname%/`?
- Allow Permalinks to Work with and without Hyphens
- WordPress permlink is not working
- Problems with rewrite rule
- How to Custom Edit Post Title & Permalink Slug?
- Problem with parent page slug only in WordPress admin
- Broken wordpress site, non-working links and no access to wp-admin page
- How can I get the list of all pages URLs including their shortlink IDs?
- How do I remove /wordpress/ from my permalinks?
- “-2” Being added to end of URL (no duplicate pages, no pages in trash)
- Page found with “Plain” permalink but not with “Post name”
- Post Name Permalink setup gives 404 error inside sub-directory
- How to use Specific URLs for some posts
- Change permalinks for specific pages
- Page redirect to 404 when set Permalink = “Post Name”
- How can you create a Permalink structure on a WordPress site?
- How to enable http (not just https) in wordpress?
- Multiple Tags Issue in Permalinks
- Is there a way to show attachment IDs on the attachment info screen?
- Keep permalinks in WordPress
- Auto Changing Text Case
- Need to capture “keyword” added to the end of the post, even with “pretty permalinks”
- Is it possible to change the permalink structure without changing the old permalinks to posts and without 301 redirects?
- WP Multisite Subdirectory Custom Permalinks 404
- Whole site’s pagination not working after rewriting product permalink
- Convert $ _GET to permalink
- Permalink blog page (only) not working
- Yoast and permalink troubleshooting
- Permalink Issue | Too many redirects
- WordPress project redirecting to a blank index.php when i use custom templates
- Parent/Child Relationships with Multisites?
- Custom Permlinks work, regular page permalinks don’t
- How to redirect from old standard wordpress permalink structure to new custom one
- wp_dropdown_categories links 404
- Permalink problem ( Blog posts vs custom post types)
- Two urls for one website
- Added incorrect rewrite rule now getting an error
- Keep wordpress from modifying my permalinks
- get_permalink wrongfully returns only year and month and not all the link
- Link to most recent child page
- Permalink Issue – Funny & Weird
- WordPress permalink still not working (error or not understood?)
- Pagination is not working, how to trace it properly?
- Problem when i configure permalink
- Files placed in directory with wordpress 404
- wordpress home is gone
- how to create several url aliases for a page
- Post URL not working according to permalink setting
- Strip category base from URL?
- Does the error “A structure tag is required when using custom permalinks.” mean my permalinks haven’t saved?
- 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 make my custom permalink pull up the correct post
- 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?