I am creating one little plugin for WordPress which is about trips. I am now at the point to create a browse page where to be opened each trip.
My idea is this -
I have created http://example.com/?page_id=143
And i want at my site users to open page as : http://example.com/trip/NAME
Can someone help me with the rewrite url? because I am very weak on rewriting..
Put this before your wordpress rules and after the RewriteEngine On
RewriteRule ^trip/([a-z0-9\-_]+)/?$ index.php?page_id=143&name=$1 [NC,L]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With