I'm trying to figure out how to create a custom URL for only one page on Wordpress. The answer here might be pointing in the right direction but I'm not really sure how to implement it. How can I change the URL for a single page in Wordpress?
In wordpress I was hoping to create a page and let's say for example the default URL of that page is
http://wordpress/?page_id=772
I want to change that URL to be the following
http://wordpress/share_this.php?pid=rk_379061
The URL must be in that format as the url is generated and embedded into an email by 3rd party software.
So I was thinking if there was a way to change page_id=772
to share_this.php
and then allow the file some way to consume the parameters pid=rk_379061.
I've had a look at my .htacess file and it just includes the following :
# BEGIN WordPress # END WordPress
I'm not really where else to look.
Any ideas. and thanks in advance
Do you mean something like this (must be above your
# BEGIN WordPress
line)This will take the request
/share_this.php?pid=rk_379061
and rewrite it to:/?page_id=772&pid=rk_379061
, so that thepid
parameter can be accessed.