mask the url

Hello Alberto.

You have several options:

1.- Mask the URL in htaccess:

Suppose you want to mask the URL yourdomain.xxx/landing

.- We will add the following in the htaccess file:

RewriteEngine On
RewriteRule ^landing/?$ /landing/else/

in this case the URL it would show would be “yourdomain.xxx/landing/more

2.- show the page with an iframe.

the issue would be to create an html file where we will display the page with an iframe that you want to display.

.- You create a file for example index.php

.- inside the html file and after the tag add the iframe:

you have to modify xxxxxxxxx.html for the URL you want to display, let’s say you want to display the home:

It can be an external URL to your website.

To show the iframe in full size we add this CSS code before the closing of the tag

An example of the html file would be the following:





Document without title





3.- Using a plugin:

You have the Pretty Links plugin that hides the links and shows them with a short link:

->

.- Once installed and activated, access its configuration and add a link that you want to mask:

redirection: Here we must choose if it is a Temporary (307) or Permanent (301) redirection.

destination url : Here we will put the link that we want to hide.

Pretty Link: Here we will choose the link that we want to show.

Once the options are saved you will already have that masked link.

I hope this information is useful for what you are looking for 😉

All the best

AnswerQuote

Answered : 07/08/2020 11:22 am

See also  Run a slightly special cron job
Loading Facebook Comments ...
Loading Disqus Comments ...