Home Tour Demo FAQ App Gallery Buy Now    
Home > Template Tags > How do I fix missing HTTP prefixes on us...


How do I fix missing HTTP prefixes on user entred URLS?

{FIXHTTP}

If you have a question which asks URL on your form, users will definitely enter wrong URLs such as: www.example.com or example.com. These URLs will create problems because browsers will think they are folders on your server and redirect users to http://www.yoursite.com/www.example.com And of course users will see 404 page.

In order to prevent this problem you can use {FIXHTTP:urlField} tag.

Example:
{homePageUrl} will print www.example.com
{FIXHTTP:homePageUrl} will print http://www.example.com

If the home page url is correct FIXHTTP will not change the value and print the URL untouched.





Tags: template tags
Related Articles:


Add a new comment

Send Comment

 
 
Customer Log-in | Support Forums | User Guide | Free Form Builder | Contact Memberkit Team