WordPress URL custom rewrite

I’ve created a template for a custom page in WP, which URL looks like:

http://example.com/my-page/

Then I had to pass some info to the page with the GEt request, so my page now looks like:

http://example.com/my-page/?id=123

Finally I want to rewrite the way the URL looks via .htaccess, to get something like:

http://example.com/my-page/123

How do I change the WP original .htaccess to achieve that (without breaking it too)? Thanks!

Read more here: WordPress URL custom rewrite

Leave a Reply

Your email address will not be published. Required fields are marked *