From what you write it sounds like Apache isn’t reading/following the .htaccess at all. This can be the case if the AllowOverride
setting is not active for that directory. (See this thread on StackOverflow for more information.)
<Directory /var/www/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Setting this (AllowOverride None
-> AllowOverride All
) and restarting Apache should solve the problem.
Related Posts:
- How does WordPress create URLs that Apache knows about?
- WordPress on VirtualBox – no pretty permalinks
- WordPress on Ubuntu 12.10: permalinks problem
- 404 with post name permalinks
- .htaccess file missing from WordPress install directory
- Permalinks not working Apache + CentOS 7
- WordPress Permalinks still not working despite all necessary settings
- Page preview is shown, updating page gives 404 error
- How to remove /year/month from uploaded medias?
- Unable to get /%postname%/ permalinks working, 404 on all links
- Broken wordpress site, non-working links and no access to wp-admin page
- how to prefer static page if it exists over wordpress page
- post permalinks with dot in url don’t resolve to correct page template
- Bulk append URL (add word to slug)
- Moved site, Old links in pages still pointing to old host
- how to set up wp in folder within static website?
- The requested URL was not found on this server [closed]
- How to enable %postname% permalinks on Mac?
- Got 404 error when changed siteurl via DB in WordPress
- Changing permalink stops me from creating webpages
- Custom Permlinks work, regular page permalinks don’t
- Moved WordPress to other folder (Windows) WAMP = 403 Forbidden
- Webdav with permalink in WordPress v3.3.1
- Ugly permalinks stopped redirecting to pretty URLs
- After I migrated a website for WordPress – Saved changes in wordpress settings >> permalinks. Homepage only working, links not working
- Problems loading stylesheet and permalinks after rebooting
- Settings > Permalinks – mod_rewrite ineffective if expression not preceded by /index.php/
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- Xampp MySQL not starting – “Attempting to start MySQL service…”
- 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
- 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
- Search result permalink
- Permalinks Structure and 404 Question
- 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
- 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
- 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
- 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
- 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?
- 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”
- WordPress wildcard route to page
- WordPress Attachment Page URL Rewrite!
- Customize URL for specific tags archive
- Yoast and permalink troubleshooting
- Permalink Issue | Too many redirects
- Parent/Child Relationships with Multisites?
- wp_dropdown_categories links 404
- Permalink problem ( Blog posts vs custom post types)
- Added incorrect rewrite rule now getting an error
- 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?
- WordPress Permalinks 404 Not Found
- WordPress 6.1.1 UTF8 Slug Limit Increase
- 301 Redirect posts to newly added categories
- How to have category/subcategory/posttitle/ permalinks?
- Website appears with wrong permalink in Google’s search
- Permalink settings are stuck on https, will not update to http