Nevermind I figured out myself.
In case someone needs the solution:
You have to enter in Setings>Permalinks
Then in case you are using a custom structure select %postname% and it should work
I think using Post name structure should solve the problem too
Related Posts:
- How do I Redirect a WordPress Page?
- Access post from post id in URL
- How to add category to: ‘wp-admin/post-new.php’?
- How to Check if a Page Exists by URL?
- Open WordPress ‘Add New Post’ admin page with parameters set via $_GET
- RSS for Pages Instead of Posts?
- How do you get all the urls of images attached to a post?
- How to get a post content from another wordpress blog/site?
- Display most recent post in category instead of archive?
- How to allow slashes in single posts when i click in the edit permalink button
- Possible to create a permalink to sort with meta_key?
- how to grab first link in post… and of course call it
- How can I extract the URL of a link from a post?
- Phantom 302 status code when sending a POST requests on pages
- Redirect before post page
- Create a separate JS application for an individual post?
- Create pretty permalink for a post knowing the permalink structure
- Posts are being redirected to xampp home page
- Why is WordPress redirecting users to random posts after commenting?
- Show ‘Read more’ in rss feed
- Remove slashes (both before and after) in relative post url
- Random post category URL
- Plain permalinks not working!
- get_the_content_feed with paginated posts
- Paginated Posts – Social Media Buttons Share First Page URL
- WordPress not opening posts with only numbers if permalink is post_name
- Addition Text to Post Titles (Custom Post Types) in RSS
- Assign category to new post via URL
- Relative redirects for posts, categories, products and product categories
- Posts gathered from WPEMatico feeds are being mixed in different languages. Polylang is used for language separation
- filter RSS feed in URL
- ERROR: Your feed is invalid (after update WP4.7) in custom types
- 301 (static page instead latest posts)
- Set static page/post from another blog on same network
- Permalink doesn’t get displayed in Twitter button (Local WordPress problem?)
- Retrieve post ID from “querying” URL
- Start post pagination at 0 instead of 1
- redirect to uploaded (wordpress) post after form submission from front-end
- When changing pages to posts, how do you set up 301 redirects for the page URLs?
- Linking to pages/posts within the site
- WP move posts to different path
- Make insterted image point to post url instead of attachment page
- WordPress 302 Redirect to Random Product/Post/Page
- How to get the latest URL of my blog?
- When WP_Query only returns 1 post, how do I automatically redirect to that post?
- Publish a Silent Post without updating Feed
- Inserting Media to WordPress Posts
- Custom Post Type, post-formats associated to custom post type > 404 archives
- Problem with articles feed: XML Parsing Error: XML or text declaration not at start of entity
- add_rewrite_rule and template redirect not working
- Creating a redirect option for current page url
- How to prevent to create same url of post, if the previous was deleted?
- How Do I Redirect WordPress Pages but not posts?
- WordPress posts have a different URL to the index
- How to preserve HTML from posts in RSS feed
- How to bulk Update URLs to new values?
- Permalink Short code showing unnecessary link text inside the loop
- How can I make a post sub link?
- Redirect old Posts URL to new URL
- Redirect to custom post if custom archive page has just one result?
- Does having category name in permalinks affect SEO when having a post in multiple categories?
- How to 301 redirect from url with post id to permalink with post name (slug)?
- Submit New Post
- Change WordPress names duplicate titles (url)
- How to generate an HTML link automatically from URL in a users’ post
- Prevent Archive URLs
- How to redirect if is post edit or publish page?
- Category URL to use same string as Post URL Permalink
- Querying posts from current category, using a variable as array argument
- how to redirect page after delete post inside a post page?
- If I moved the location of my generic “posts” page, do I need to change the slugs for all of the individual posts?
- Multipage Post URL correction
- Post & Category Archives URL structure
- Post URL duplication adds numerical value
- WordPress URL question
- issue in wordpress auto delete post and redirect to another 1
- Embed image in post from external url
- structure of posts and pages
- How to change post template via url?
- How to retrieve a post by inputing the url in a custom field and displaying it on an options page
- Post as frontpage – avoid duplicate content
- How can I display a specific number of post in a category via a url
- Is there a Standard Format for Clean URLs for Archives of Custom Posts?
- Create custom URL with different levels
- Moving Posts to a new site and maintaining URLs
- Make Show Notes for Individual Podcast Episodes Easy to Find (multiple URL’s?)
- How to include Related Posts in WP RSS feed
- Change the default video URL in a post to shortcode format
- Redirect posts to sub domain except pages
- Choose options via url
- 301 Redirecting posts without %postid% (just %post_name%) in permalink to ones with %post_name%_%postid%
- How to get override the WP Admin Syndication feed limit for a custom feed?
- Redirecting to a post based on a GET parameter and a custom field
- Add News Feed to bespoke website, only to one page on whole site
- Default post type doesn’t display in url
- Do I need to create a multisite for querying posts from multiple WordPress sites?
- Post page still linked to old site
- Blog posts are not appearing as subs of Blog Page
- How to add paraent in Blog post URL in wordpress
- Post pages are redirecting to the 404 page in wordpress