Earlier we were stuck with few selections of web safe fonts, because we didn’t have much choice. But times have changed, new web browsers can embed and render any stylish font, and this opens up new opportunity for Web developers to transform a basic looking design into something extraordinary.
There are various methods we can use to redirect users to different URL. Let’s have a look at codes below with just one goal.
HTML Meta Refresh Tag
Most common way to redirect users to another location is using HTML refresh meta tag, just have this code placed within the <head></head> section of your HTML page :
//Will take you to sanwebe.com
window.location.href = 'http://www.sanwebe.com';
We can use PHP header to redirect user to new URL easily, but remember there must be NO other output before this code, such as echo code which will trigger “headers already sent” error.
Here’s perl code to redirect user to sanwebe.com.
$url = "https://www.sanwebe.com/";
print "Location: $url\n\n";