I have a wordpress site. In a post I use a clickable another post link like "https://domain.ext/another-post-link", but I do not want to the display the link in the browser address bar and in replace the url would be like https://domain.ext/dl?url=vjhvvdhlbdhbvfhdvdfvdkfdfaewa==. That means the url would be encoded. How I can I do that. I try to find out by searching in google but could not get exact solution. Can anybody help me.


The only way I know to change the URL in the browser's address bar is to provide the actual URL in the HREF link that you want to see displayed.

If there were a way to change the URL in the browser's address bar, then that would open up many cans of worms for hackers that want to obfuscate the actual URL. So the browsers do not allow that ability.

  • Hello Rick, Please Look this site thewpclub.net/…. When someone click the link (www22.zippyshare.com/v/TQzgCB4h/file.html) in post, then he redirect to a link (thewpclub.net/download/…), How this is possible – Fdx Regan May 15 '19 at 3:23
  • An htaccess can redirect request to another page, that page's URL will show up in the address bar. Lots of googles/ducks/bings on htaccess redirects. But your question indicated (to me) that you wanted a click on URL1 to display URL2 in the address bar, even though the URL1 page was being 'served' back to the visitor. Redirects via htaccess OK; you can't 'spoof' the URL shown in address bar; it will show the actual page you are serving. (Spoof example: page request for www.example.com/page1 and make the address bar show www.cnn.com while you are displaying the 'page1' page from your site.) – Rick Hellewell May 15 '19 at 16:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.