URL Redirect with Parameters
Принт- 0
You can use URL Redirect to forward your visitors to a specific page at the destination URL and pass values via query strings to the destination.
The feature is supported on Hostmane BasicDNS, PremiumDNS, and FreeDNS. If your domain name is pointed to one of the listed nameservers sets, you may configure the redirect and include the needed specific parameters to it by following the examples below:
No parameters preconfigured
Redirect to a specific page/folder/subfolder
Redirect with parameters
Redirect with parameters to a specific page/folder/subfolder
If you'd like to set the redirect for a subdomain (such as www, test, etc. ), the @ symbol in the Host field should be substituted with the actual subdomain. More information about the subdomains can be found here.
No matter what you enter after domain.tld/ in the address bar (e.g., domain.tld/home, domain.tld/xyz.html) you’ll be redirected to http://destination.tld (not to http://destination.tld/home or http://destination.tld/xyz.html).
Example record: Type: URL redirect | Host: @ | Value: http://destination.tld
Redirect to a specific page/folder/subfolder
To redirect your domain to a particular page/folder/subfolder of the destination domain, add a forward slash "/" in the end of your destination URL.
Once you add this special symbol after http://destination.tld >> http://destination.tld/ , the URL domain.tld/xyz.html or domain.tld/home will redirect the users to http://destination.tld/xyz.html or http://destination.tld/home respectively (in case the sub-folder (/xyz.html or /home) exists on destination.tld).
All values that are put into the original URL (domain.tld/anything) will be included in the destination address and applied in the results (http://destination.tld/anything).
Example record: Type: URL redirect | Host: @ | Value: http://destination.tld/
Once you add any parameters to the destination URL (http://destination.tld/?1=2), the query string values (if any) will be combined with parameters of the destination URL and passed then to the destination URL.
The parameters entered in the original URL (/something?a=b) are combined with parameters preconfigured in the Value field (/?1=2).
Thus, to have domain.tld/something?a=b redirected the visitors to http://destination.tld/something?a=b&1=2, the following record is to be added:
Example record: Type: URL redirect | Host: @ | Value: http://destination.tld/?1=2
All the parameters are combined and placed at the end of the URL.
The page you'll get as a result is http://destination.tld/example/page?a=b&1=2.
Example record: Type: URL redirect | Host: @ | Value: http://destination.tld/page?1=2
That’s it!