Creating a website, the FAQ
Essential questions about the creation and the design of a new website and the problems faced by a webmaster supplemented by a FAQ on how to design a website.
Solutions on redirection pages or site can be found in the article on redirects.
- Should I use CMS?
- Is the choice of the domain name extension important?
- How do I know if another site steals my pages?
- How to have statistics of visits?
- Can I have a one-letter domain name?
- Can we have a brand name in a domain name?
- Should I park in a domain in waiting to put the site online?
- What does Google in case of duplicate content?
- How to know the traffic of a website?
- How to create a website without HTML knowledge?
- Can I redirect my domain name on a free host?
- How can I get my own 404 error page for pages not found?
- Can I point several domain names on the same site?
- Can I put a page on two different sites?
- How to execute PHP 5?
- How to change the extension file that the server must parse for embedded PHP code?
- How to protect a directory by a password?
- How to block aspirators?
- How to prevent a spam site to link to my site?
- Why loading of my pages is so slow?
- How to know the site of an IP address?
- Should there be a / terminal in URLs?
- Can I hide the source code of a Web page?
- Do I need to separate words with a dash or an underscore?
- Is it better to use a relative or absolute URL to internal links?
- For a bilingual site, do I have to create different domains, subdomains or subdirectories?
- Is it a drawback, pages of big size?
- How can I have a picture in front of my site in the URL bar of browsers?
- What size should have web pages?
- How to find images for a website?
- What are the best font and size for a Web site?
- What is a quality site for a search engine?
A CMS delivers the webmaster of most management task, and allows to concentrate on the content. CMS also provide tools as tag cloud, RSS generator and various other tools. There are general CMS and other specialized blogs, wikis, faqs, and so one.... If you know nothing about HTML and you want make a serious site (there is also blogging platforms), using a CMS is necessary, provided that it is either Wordpress or Joomla. With others such as Drupal, you will have to look at the code ...
To decide between using a CMS or a static site, see Creating a website in 10 steps.
To choose a CMS, see What is a CMS and which one to choose.
For the generic extensions as com, net, org, the advantage is not obvious.
Or even more simply, go to Copyscape and enter the URL of your site or page.
We must ensure that the user is not confronted with a such error message. To do this, a special page is created that will be displayed instead of the missing page. It remains to redirect the visitor to this page ...
Note that Wordpress and other CMS have error redirection already taken into account by the system.
Create or fill a .htaccess file with the following content:
RewriteEngine on ErrorDocument 404 /error.htmlThis file should be at the root of the site, often into the subdirectory "www". You can download the archive with a ready to use 404 file.
The domain name must not be included in the URL because it impedes search engines. In effect this replaces the 404 code by a 200 code that is for a successful load. Google will refuse your sitemap if a full URL with domain name is used to redirect errors.
Another idea is to build An intelligent 404 page The 404 page has a list of links related to the missing page that is requested by the user. This is easily done with keywords tools in Wordpress.
PhpMyVisites is a software that you install on the host, which requires PHP and MySQL. It appears to be limited in traffic, around 1500 visitors a day.
G.COM is the latest registered, by Google.
The other case is when a site gets your content for display on its site or through proxies. Google takes care to find out which site is the original and which is a copy (théorically). In all cases your site will not be penalized by a duplicated page.
Note that when a site is accessible by two domain names, Google can not know which is the original! In this case you'll necessarily be penalized.
Invisible redirection is possible only when the host takes into account the DNS management.
Your other domain names must point on different pages, and it may contain a link or 301 redirect which redirects the user to the content hosted. In both cases, search engines are aware of the redirection and this avoids they regard the two domains as attempting to trust results of searches thanks to a double indexing.
Since the canonical attribute is taken into account by search engines, providing the URL of each page is defined by the attribute, you can use several domains for a site.
You can avoid sandbox applied to duplicated pages, see the SEO FAQ to the question "how exclude a page of indexing".
SetEnv PHP_VER 5On other UNIX servers that can be:
AddType x-mapp-php5 .phpConsult the instructions of your provider to make sure that the environment variable used is the same.
AddType application/x-httpd-php .htm .html.htm and .html are examples. The command will do that files with these extensions are handled by the server as the files with the .php extension.
SetEnvIfNoCase Referer ".*(domain | anotherdomain | etc. ).*" spammer=yes Order allow, deny allow from all deny from env=spammerThe names of the sites, domains with extensions, are placed in a list in parentheses and separated by the vertical bar.
This code combines a code to a range of domains, and the following lines give permission to all sites except the sites designated by the code of sending visitors. For the latter access is denied.
It's also a number that identifies an Internet site, but the domain name is associated with that number by the DNS manager (typically the host or the registrar), which allows access to the site.
Typing "my ip" on a search engine, a site will display your IP address on the homepage.
The Ripe site provides access to the database that links the domain names to IP addresses. Simply type the IP for the domain name and know its owner.
- Absolute URL: http://www.example.com/mypage.html
- Relative URL: /mypage.html
- Local URL: mypage.html
The relative path works only if the server is configured to set "/" as the root of the site (rather than the root account on the server). It is useful only to change the domain, an unlikely action.
Local paths must be avoided. Local URL are not taken into account by Analytics for statistical distribution of clicks.
http://www.example.com/forum or http://www.example.com/forum/In general, if it is a directory the server redirects the first on the second. But the first can be a file, it is often the case with Wordpress.
This is not a problem for Google, when there are two different links it indexes the file and the directory. When the server redirects the URL without a trailing slash on a directory, there is no duplicate content but for the crawlers of search engines is a complication to avoid.
Therefore in the case of a directory always add the slash. More infos on To slash or not to slash by Google Webmaster Central.
A simple trick is to put a lot of blank lines at the top of page to suggest that there is nothing to see! You can disable the right click, but this is easy to circumvent (ctrl+u). More annoying to the reader, remove line breaks so that the source does become a single line. This will discourage the lazy, but not the obstinate that will use a formatting tool.
Until now underscore character "_" did not separate words for search engines, so my_site is seen as one word, while my-site contains two words for engines. Using a dash as separator is still recommended.
Subdomains: In this case, the less relevant is the use of subdomains. Indeed, they are seen by search engines such as different sites, then division of the PageRank. Better a site bigger than two small sites.
In fact we should use subdomains only for multiple users, each with access to own Webspace.
Country domains: Using different domains has the same drawbacks but with the advantage of the extension in relation to the language and URL clearer to the public.
The extension on language like .fr for example, gives an advantage for positioning on local search.
Subdirectories: However, having a larger site may outweigh the benefits of geolocation.
If traffic on the site is not large enough to justify multiple domain names, sub-directories are preferable.
Using a script to adapt the language to the user is in my experience, effective with the precautions listed in the article.
Note that you can automatically generate metas with the freeware utility Spider SEO.
It's a kind of icon from Windows, named favicon.ico, with a size of 16x16 pixels or 32x32 pixels, which must be placed in the root directory.