|
How to tune .htaccess file for SEO |
|
SEO Articles
|
|
Written by Administrator
|
|
Friday, 06 August 2010 19:50 |
It is common knowledge now that people make use of redirects when they want the visitors to direct from one page to the other. Most of the times website owners employ this technique when they shift the content from one page to another and want to redirect the visitors to the new page.
One of the easiest ways to make your site profitable while redirecting it, is by adding code to .htaccess code. Redirection in .htaccess can be enabled by making use of the Apache module, mod_rewrite. The advantage of making use of this module is that it allows the users to rewrite the code internally. If it changes, it is referred to as an external rewrite.
After this, the FollowSymLinks option also needs to be incorporated in the apache server. In absence of this, the user might be presented with the 500 Internal Server Error or 404 Error which is basically an error flashed when the host cannot find the designated page. It is mandatory for an individual to incorporate this option in case they want to avoid the error page flashing instead of their websites on the visitor’s screen.
Now, let’s come to the most important part of the website i.e. how to redirect the website with the help of .htaccess. One needs to follow simple programming steps in HTML in order to avoid flashing of any unnecessary errors
.htaccess is easy to write upon, provided you have access to the apache server where is usually located.
1. When an individual wants to deny all files, they should give the command:
2. If the access has to be allowed only from certain IP addresses, it should be addressed as:
Code:
order allow deny
deny from all
allow from
After all the formalities have been done, one needs to remember that .htaccess is a very powerful file, one which can still flash an error page even if there is a single space left while writing the new code. Thus, it is suggested to seek guidance from an experienced software engineer in order to write the code.
Here are a few guidelines to .htaccess file:
a. Any .htaccess rewrite should ideally begin with:
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
b. Further examples of .htaccess include:
Code:
SSLOptions +StrictRequire
SSLRequireSSL SSLRequire %{HTTP_HOST} eq "google.com"
ErrorDocument 403 https://google.com
Posted: 2010-08-06 14:20:00 Related Articles - Do subdomains have any impact on SEO?
When it comes to SEO, too much knowledge is never enough. There would always be areas of expertise which are yet to be mastered by you. Let alone master, there ...
- Improve SEO with Internal Links
The process of internal linking within the website structure is pivotal for higher rankings on the search engines. This is an important aspect of making the web...
- How URL Redirects can impact SEO of your website
Redirecting a website could be the most important link for an individual who is having troubles with two separate pages with same names. Most of the website own...
- Importance of Analytics in SEO
It does not matter what kind of particular technique a webmaster employs in order to popularize their website. Until and unless, the technique used and the resu...
- Improve SEO with submissions to online directories
In order to make the effective use of directory submissions one needs to clearly understand the concept of SEO. SEO (Search Engine Optimization) means the proce...
|
|
Read more...
|