Host-side issues for hosted site, solutions

A few questions about site maintenance from the server side (with mutual hosting).

Run PHP 5

By placing the following command in .htaccess for Apache:

SetEnv PHP_VER 5
On other UNIX servers, this can be:
AddType x-mapp-php5 .php

Refer to the hoster instructions to verify that the same environment variable is used.

Change the file extension the server should run

If, for example, PHP code was placed on the .html extension page, then how can the server handle this PHP code?
By placing the following command in .htaccess:

AddType application/x-httpd-php .html .html

Examples are the .html and .html extensions. The command will force files with these extensions to be processed by the server as .php files.

Do I need to put/terminal in URLs?

You can write the URL as:

http://www.example.com/webmaster ou
http://www.example.com/webmaster/ 
Typically, the server, if it is a directory, redirects the first to the second. But the first may be a file, as is often the case with Wordpress.
For Google, this is not a problem when there are two different links that index the file and directory. When the server redirects a URL without slashing the device to a directory, there is no duplicate content, but for search engine crawlers this is a complication that should be avoided.
Therefore, in the case of a directory, you should always add a slash.
For more accuracy, see To slash or not slash by Google Webmaster Central.

Password protect the directory

The.htaccess file can be modified more easily using a tool that automatically generates the file.

Prevent my site from linking to a spam site

In the .htaccess file, add the following lines:

SetEnvIfNoCase Referer ".*(domaine | autre domaine | etc. ).*" spammer=yes      
Order allow, deny 
allow from all 
deny from env=spammer

The names of sites, domains with the extension are placed in the list in parentheses and separated by a vertical string.
This code associates the code with a set of domains, and the following lines give permission to send visitors to all nodes except the nodes indicated by the code. For the latter, access is denied.

Hyphen or underscore to separate

In the file name, binding, etc., the underscore "_" does not separate words for search engines, so guide_tricot is seen as one word, while the dashed knitwear guide contains two words for the engine.
The underscore character is a term delimiter in the identifier in programming, such as file_exists (). An identifier (possibly containing underscores) is a word in human language and thus for search engines.
For MSN, references containing more than one dash are not considered for studies.

Relative or absolute path on site pages

The internal link URL can take three forms:

It is necessary to give preference to the absolute path. It returns to your site when the page is displayed on the aggregator.
The relative path works only if the server is configured to define "/" as the root of the site (not the root of the account on the server). This is useful only to change the domain later, an unlikely action.
The local path must be avoided. Local paths are not taken into account by Analytics for click distribution statistics.

Optimal web page size

For a number of reasons (search engines, load times, etc.), the recommended size is usually between 10,000 and 20,000 characters, and this is often practiced by professionals. Robots pay more attention to the first part of the pages and this may be the reason for their reduction.
Visitors prefer short pages when surfing to distract themselves, but pages designed to document a particular issue, in this case oversized pages, give a better chance of getting backlinks.
In 2008, the average page size was 312 KB, according to a study published by the website Websiteoptimization.
Page loading times are also important and can be found using tools such as Google's Tools webmaster.

Have favicon: image before my site name in URL string

It also appears in the Favorites panel.
This is a Windows icon file named favicon.ico with a size of 16x16 pixels or 32x32 pixels, which should be placed in the root directory.
A standard icon editor can be found on this graphics software page.

See also: