Mehdi, it’s common problem, as Apache server is not set by this way by default. Your problem can be solved with some very simple steps (simply quoting Samuel B):
If you want to use permalinks, you will need to make a change inside another file:
apache > Conf and find the filehttpd.conf
. Open that in a text editor. Use the search facility in the editor to find “rewrite”. The line you need looks like this:
#LoadModule rewrite_module modules/mod_rewrite.so
You need to take away the hash sign so it looks like this
LoadModule rewrite_module modules/mod_rewrite.so
Now just save the file.
Reference: WordPress Support – Answer by Samuel B
And a warning:
REMEMBER:
NEVER EVER EDIT A CORE WORDPRESS FILE, IT’LL SIMPLY MAKE YOUR WP BUGGY.
Related Posts:
- Handle category name URL rewrite before different post type slugs
- Combine Multiple Categories Into One URL Slug
- Add specific word to default page permalink
- How to create custom URL routes?
- How do you create a “virtual” page in WordPress
- Need help with add_rewrite_rule
- Mixing custom post type and taxonomy rewrite structures?
- remove “index.php” from permalinks
- How to create a front end user profile with a friendly permalink
- How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
- Use a template file for a specific url without creating a page
- Using the Rewrite API to Construct a RESTful URL
- Does WordPress keep track of a post’s URL history and provide automatic redirects?
- How to rewrite URI of custom post type?
- Passing and retrieving query vars in wordpress
- Rewriting a custom-post-type permalink with taxonomy term?
- Change the “page” slug in pagination
- Understanding add_rewrite_rule
- Override default url for author pages?
- Permalink format: singular or plural
- Add .html (dot HTML) extension to custom post types
- web.config conflict on IIS
- Rewrite Slug for CPT Archive Pages to Plural Name of Slug
- Change author base slug for different roles
- How does WordPress handle permalinks?
- Pretty permalinks for search results with extra query var
- Masking wp-content/themes/name/images to just images directory using htaccess
- Two (or more) parallel (sub-)TLDs that are retained when surfing the site / dynamically set the site address?
- How to get pretty URLs with add_query_arg in permalinks
- Using custom/dynamic “slug” for a page
- Custom rewrite rules for archive page and single post
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Creating custom permalink structure for languages
- Custom post type permalink endpoint
- How to make pages slug have priority over any other taxonomies like custom-post, post or category
- Rewrite rules not working in WordPress
- How to retrieve $_GET variables from rewritten URLs?
- Dynamic Endpoints
- How to remove dates from existing permalinks?
- Passing parameters to a custom page template using clean urls
- How to remove slug from hierarchical custom types in 3.5.2
- rewrite rules and querystring
- Getting the Site URL Including the Front Base
- Custom post types – Use post_id in permalink structure
- Using $_GET variables in the URL?
- Adding rewrite endpoint breaks static front page
- How to add custom rewrite rule to .htaccess?
- Multiple post types – share same ReWrite slug?
- How do I remove a rewrite rule?
- How do I add a server-independent external rewrite rule?
- Multiple endpoints to same page
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Use subdomain for certain urls
- Custom Permalinks for Blog Posts Only
- Unique URL Every Time
- Including category-base in a post permalink results in 404
- Custom post type permalink: only use %post_id% and remove %postname%
- Custom post types – Use post_id in permalink structure when using has_archive => true
- generate_rewrite_rules (action) vs add_rewrite_rule (function): which one is preferred?
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- WordPress thinks my custom route is a 404
- Filtering categories in the permalink structure
- Detect page type by url (Archive, single, page, author,…)
- Rewrite URL – how to do a SEO-friendly Unicode custom URL?
- I want to create a custom slug in WordPress and output JSON. How do I do this?
- How to make a category page the blog home page?
- add_rewrite_rule: $matches var not replaced by captured value
- Rewrite custom post type rss feed links
- Can I call a custom plugin with a direct URL
- Custom permalink structure only for default posts
- How to show the same content on multiple URLs?
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- Custom rewrite rules for pages
- Rewrite default post type
- Custom permalinks with NextGEN Gallery
- Date based URLs for custom posts and pagination
- Clash of the rewrites
- Using /%postname% for a custom post type
- Using a page template without a page
- External/non-WP rewrite rules
- How to add a custom URL placeholder to author archives?
- How-to add rewrite rules to point the uploads folder to a subdomain
- Multiple post categories – single permalink
- How to custom change author base without $this->front?
- URL rewrite based on a custom field value
- Update URL Snippet to Canonical Permalink URL
- Rewrite Rules for Multiple (more than 2) Taxonomies
- Changing the URL Structure of a Paginated Custom Post
- How to prevent the default home rewrite to a static page
- Create built-in pages without creating actual pages
- “.#[random-char-string]” being inserted at end of URLs
- Pretty URL with add_query_var
- How to modify URL structures in custom post types and taxonomies or terms
- How to seamlessly redirect between different archive and singular slugs?
- Is the SEO plugin necessary?
- Can ‘numberposts’ be passed in the URL query string?
- How to add dot(“.”) in post slug
- How to prevent redirection to max 2147483647 for larger values of the page query variable?
- Adding meta values to permalink