• Resolved Earthstoriez

    (@earthstoriez)


    I want to change my permalink structure form https://example.com/sample-post/ to https://example.com/%postname% . To remove the trailing slash at the end of the link.

    Can i do that with Redirection?
    Is there anything else that i need to account for?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Godley

    (@johnny5)

    I think if you just change it in your permalink settings then WordPress will handle the slash.

    Thread Starter Earthstoriez

    (@earthstoriez)

    @johnny5 thank you.

    I have tired to research that, but could not find any documentation. You.com AI did suggest it though.

    Adding those rewrite rules in .htaccess should not hurt either, right?

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_METHOD} GET
    RewriteCond %{REQUEST_URI} !^/wp-json/.*
    RewriteRule ^(.*)/$ /$1 [R=301,L]


    In terms of SEO, i guess i will have to remove the trailing slash form my internal links too. This should work with your other plugin “Search Regex” i believe, right?

    • This reply was modified 1 year, 6 months ago by Earthstoriez.
    • This reply was modified 1 year, 6 months ago by Earthstoriez.
    • This reply was modified 1 year, 6 months ago by Earthstoriez.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalink’ is closed to new replies.