If the permalink is to a file with an extension, no trailing slash is needed.
http://www.domain.com/afile.html
If the permalink is to a directory, a trailing slash is preferred. Otherwise, the server will respond with a redirect and the browser will have to add the trailing slash and make a second request automatically.
http://www.domain.com/adirectory/ is served immediately by the server
http://www.domain.com/adirectory browser must make a second request with trailing slash
Related Posts:
- Changing permalinks gives me 404 errors on nginx
- Strange permalink issue: can’t rename /company-2/ to /company/
- How to get permalink and title from post ID?
- Using $_GET variables in the URL?
- Removing leading zeros from custom permalink structure
- Move WordPress to subdirectory, keep ALL URLs
- Update URL Snippet to Canonical Permalink URL
- WordPress permalinks Yahoo hosting(no .htaccess allowed)
- How do I turn off 301 redirecting posts (not canonical)?
- How can I include a query string with get_permalink
- Permalink: postname EXCEPT for blog
- %tag% in permalink not working
- How to assign a Permalink to a Function
- How to identifty post from its URL in 404 page?
- Rewrite rule never matching
- How to get blog id from permalink?
- Custom url for a single page
- Rewrite-Rules not working on a vhost, everything goes to index.php
- Date archive permalink modification
- Rewrite URL for results of a custom WP_Query
- Using ‘Primary Category’ in URL
- Changes to permalink structure results in 404 error for all pages other than home
- Filter string like a slug
- I need a custom permalink for my website
- Woocommerce Product Attribute Permalink doesn’t work?
- Why is add_rewrite_endpoint incompatible with /%category%/%postname%/ permalink structure?
- Custom permalink for search and pagination
- Rewrite Rule for default post type
- WordPress permalinks that end with a hyphen result in a 404
- Date Archives’ Permalinks under Category folder
- get permalink of page children in loop
- Confusing about permalink
- Programmatically Restrict WordPress from using certain URLs or sub-directories
- Title attributes on Permalinks for posts and products
- How to include sub directory in sitemap? [closed]
- Do WordPress Permalinks Refer to a Lookup Table in the Database?
- Post preview gives 404 when permalinks are purely date based
- Custom $_GET vars in wordpress entry with permalink
- WordPress Not Using Template Files After Permalink Update
- Permalinks only for posts
- rewrite rule to redirect to the most recent date permalink
- Change Buddypress Admin Profile Page Permalink
- Permalink for PDF of article
- How to link the title adding a permalink?
- Visiting posts results in 404 errors after host migration
- Suddenly new posts have the default permalink instead of the post name
- Permalink Settings
- rename ‘page’ URL fragment in pretty permalinks
- Can’t get permalinks working!
- Redirecting “wrong” but working links to their canonical URL in order to prevent search engine penalties (e.g. /123/ at the end of URLs)
- WordPress not generating .htaccess but tells me that (Permalink structure updated.)
- Permalink with anchor on home page to single page
- Ignore postname in permalink
- How do I keep multiple domain for my wordpress site
- how to set up wp in folder within static website?
- Create custom links for excerpts with php dynamically
- placing the media uploads in a subdirectory
- WordPress permanent links not working (the weird way)
- Permalink Structure not updating .htaccess
- Multiple sites with pretty permalinks with nginx
- mod-rewrite rules grabs “broken permalinks”, too
- How to enable %postname% permalinks on Mac?
- How do I rewrite attachment urls when permalink structure contains %category%?
- Creating an alternate path for a page
- Permalinks causing wp-json to 405
- How to change URL from /%postname%/ to custom-name/%category%/%year%/%monthnum%/%day%/%postname%/
- How to prevent wordpress from lowering Capitalized letters
- Permalink prefix change
- why wordpress keeps redirecting to old page after deleting it?
- WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file
- Disable -2 Permalink Addition
- Permalink in relation with the files
- Every sub page shows Error 404, i have check permalink but still same issues
- Permalink structure /page/page/cpt-post gives 404 with pagination
- Changing permalink structure for Posts
- Allowing slash in slug/permalinks
- Rewrite posts url as they’re all children of a page
- Author permalink
- Multiple Permalink Patterns for one page
- When is a good time to reset permalinks?
- WordPress permalinks first word title
- I can get the permalink or the excerpt to work correctly, but not both
- WordPress permalink issue on AWS
- Permalink for Author’s Posts in a Category
- Permalink Rewrite with Archive – Archive gets 404
- WP Admin Bar not showing with custom permalink structure for pages
- WordPress Pagination Not Working After Transfer from Localhost
- Automatic -1 suffix being added to the permalinks of a page when the page does not exist
- Why doesn’t WP update my .htaccess file?
- Permalink for pages
- How is a URL getting mapped to a page template
- Getting the top level permalink using get_post_ancestors()
- What is the issue with our links? It creates a loop
- Routing ‘fake’ sub sub posts
- Page and post auto links
- how to make follow?
- 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
- Remove parent product category slug from product_cat url woocommerce
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup