301 redirect from http(s) non-www to www
Sep 19, 2009 Web Design
How to redirect http:// non-www to http://www?
Add this code into your .htaccess file:
#Always use the www. in the URL address RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] |
How to redirect http:// non-www to https://www?
Add this code into your .htaccess file:
#Always use the www. in the URL address RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] |
Setting up favicon.ico
Sep 19, 2009 Web Design
“A favicon (short for favorites icon), also known as a website icon, shortcut icon, url icon, or bookmark icon is a 16×16 pixel square icon associated with a particular website or webpage. A web designer can create such an icon and install it into a website (or webpage) by several means, and most graphical web browsers will then make use of it. Browsers that provide favicon support typically display a page’s favicon in the browser’s address bar and next to the page’s name in a list of bookmarks. Browsers that support a tabbed document interface typically show a page’s favicon next to the page’s title on the tab.” – Wiki
Create a favicon.ico and upload it to your server eg http://www.yoursever.com/favicon.ico (check it with your browser). Then add this HTML code into the <head> … </head> of your webpage.
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> |
Useful favicon related links:
Online favicon.ico generator
Another online favicon.ico generator
Create favicon.ico




