PROBLEM
I had the same problem on Windows 7 localhost using WAMPServer and Apache 2.2.22. Any permalink structure containing the post name didn’t work. I got an error telling me the page could not be found.
SOLUTION
I found that, by default in this installation of Wampserver, the Apache “rewrite_module” is disabled. I enabled it and now my posts and pages work fine.
HOW TO
1) With Wampserver running, click the little green icon in your taskbar.
2) Hover over Apache, then hover over “Apache Modules”
3) Scroll down the list to find “rewrite_module”
4) If it is disabled (does NOT have a check mark in front of it), enable it (add a check mark)
That’s all I had to do. I didn’t even need to re-start the Apache server. It just started working.
Alan
Related Posts:
- where is permalink info stored in database?
- Rewrite Rule for Multilingual Website, Like qTranslate?
- How can I reverse engineer a Permalink to Find the Page?
- Mapping Domains to Permalinks (not multisite)
- How to remove dates from existing permalinks?
- Change slug on post creation
- WordPress Permalink changes to question mark (?) in URL
- How would I create a different permalink structure for pages and posts?
- My permalinks are broken! Can I use mod_rewrite to ignore a physical file?
- Is there a user-facing interface to edit an attachment’s permalink?
- Can WordPress realistically handle a site with 500 ‘pages’?
- How to prevent the default home rewrite to a static page
- Is there an action for when permalinks are rebuilt?
- Custom post type by ID in root folder
- Permalinks Question: Adding a prefix ONLY in front of the posts
- Permalink redirection from ‘Day and name’ to ‘Post name’
- Is there a log for the ajax calls made when changing a post’s slug?
- Create slugs programmatically
- Make attachment pages require a base url
- get the_title_attribute by id
- How to Remove -14 from WordPress URL (Permalink)
- Rewrite URL Parameter And Force ‘Pretty’ Permalink
- How to map a URL to a specific template?
- How to hook into permalink when publishing-saving post?
- Problem duplicated shortlinks bitly
- Incorrect 404 for pages when using permalink, a static front page, and posts page
- Multisite Network: How to change permalink structure programmatically on new blogs
- Is there a wordpress function that I can use to retrieve the current page that is loaded?
- Custom Permalinks don’t work on local LAMP installation
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- .htaccess file missing from WordPress install directory
- Remove permalink settings in post for users
- Remove multisite “blog” slug from specific custom post type
- Redirect parent taxonomy to it’s child
- WordPress Permalinks still not working despite all necessary settings
- RewriteRule accepts numbers but not letters in tag
- Server Move: All pages leading home
- WordPress Permalink 404
- Avoid WordPress categorizing a permalink request as Not found 404 Page
- Pages not using permalink
- Include Post Format in permalink
- Redirects after permalink change
- WordPress permalink setup in Hindi
- remove product-category base but still redirect to page with same permalink
- Remove -2 from URL; no duplicate pages, no images, no pages in trash
- Process all virtual sub pages on parent page
- Correct permalinks and 404-error
- What would cause a theme to add extra characters to blog post links?
- Getting 404 when Access post which name start with Digit
- Custom permalink with two parameters
- Press-This stopped redirecting to permalink after post publish
- How to check if the current page is the permalink page?
- Permalinks not working on new site
- Custom links in menus not working in multiple environments
- 404 permalink errors on Pages only
- What happens to the permalink that use %postname% if I change the post name
- WordPress permalink from the database?
- Assigning proper permalink to blog that is part of a website
- What would cause a 500 Server Error with permalinks turned OFF?
- Changing permalinks back to default ( ?p=123 )
- permalinks on title tag
- Display parent page URL for child page
- How to set add_query_arg properly for home page?
- How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html
- Double Slash After Media Path (uploads//)
- New posts link to old posts (random)
- Undefined variable: testimonial in D:\Projects\PWP-WP\wp-content\themes\blankslate-child\template-parts\fields\flex\bottom-page-block.php on line 123
- Is it possible to set public to false for the native WordPress blog
- Custom Permalink (with category) for Pages
- WP adding noopener and noreferrer to all links
- 301 redirects after changing permalinks
- Post links broken after migration
- How to change permalink for listings
- Rename Custom Post Slug using taxonomy
- Link works although page was moved to another location
- wordpress admin panel loop on nginx
- Can’t access new WP install on subdirectory
- Getting current page URL when default permalink is set
- WordPress All pages but home simply read “hello”
- How to change link of an uploaded file to the media library
- On Macbook, my permalinks with post name don’t work. Returning 404 error
- WordPress pages break with custom permalink settings (theme directory not output)
- Remove /index.php from Permalink
- Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)
- Fresh wordpress installation in sub-directory not accessible
- Get link from wpe_excerpt “read more” and move it
- WordPress 4.0 beta – how to change the link URL in RSS feeds
- Folder Name and Category Name WordPress
- using post meta data as permalink tags [duplicate]
- How to display post permalinks instead of pages?
- How to configure WordPress to be a subdirectory of my main site as mymainsite.com/blog?
- Search points to /search/?s=KEYWORD instead of /search/KEYWORD
- How to change pagination base from slash to query form?
- WP Custom Permalink Filter
- standard post with extra parameter brings permalink problem
- redirect old pages by .htaccess
- Remove index.php from URL
- Siteurl code for links
- Redirect Loops Problems
- Remove parent product category slug from product_cat url woocommerce