Redirecting from non-www to www domain (Canonical Redirect)
Creating a wildcard canonical redirect which redirects any request that doesn't have the www to the www (useful for Search Engine Optimisation) can be easily achieved in your cPanel.
The first step is to log into your cPanel account. If you are unsure on how to do this, please view the following help article - 'How to log into cPanel'.
Under the 'Domains' title, click onto 'Redirects'.
Select and enter the respective information for the redirect.
Type - Choose 'Permanent(301)' .
http://(www.)? - Select the domain from the drop down menu.
/ - Enter just the old page URL that follows your domain name. For example if you want a redirect from http://www.your-domain.com/old-page, enter just 'old-page'.
Redirects to - Enter the full domain where you want the redirect to go to - the exact domain will need to include http:// or https://.
Redirection type - Select your redirection preference.
Wild Card Redirect - Tick this option.
Once you have entered the redirect information, select 'Add' to complete.
This process will perform a wildcard 301 from non www to www. Search Engines will automatically pick this up next time it crawls your site and update automatically, so no need to submit your site again.
Truth be told, it’s difficult for a web application that doesn’t have some kind of identification, even if you don’t see it as a security measure in and of itself. The Internet is a kind of lawless land, and even on free services like Google’s, authentication ensures that abuses will...
Although data persistence is almost always a fundamental element of applications, Node.js has no native integration with databases. Everything is delegated to third-party libraries to be included manually, in addition to the standard APIs. Although MongoDB and other non-relational databases are the most common choice with Node because if you...