SEOCentro
Search SEO Blogs Archive:

Search SEO Posts Last 14 Days





Use mod rewrite for SEO purposes

Note  Depending on your server configuration it can be necessary to change the examples for your situation. Always try to understand what it really does before you use it. Bad use would lead to deadloops and will hang the server.
(Page 1 of 6)

This document describes how one can use Apache's mod_rewrite to solve typical Search Engine Optimization (SEO) based problems webmasters are usually confronted with in practice. The Apache module mod_rewrite is a module which provides a powerful way to do url manipulations.

Not only can mod rewrite be used to avoid duplicate content, redirect moved urls or non existing inbound links, and create search engine friendly urls. It can also be used for to gain higher PageRank and search engines rankings, get your web site indexed by the search engines, and receiving more visitors.

We have divided this tutorial in the follow pages:
  1. Use mod rewrite for SEO purposes
  2. Avoiding duplicate content with mod rewrite
  3. Redirect relocated urls with mod rewrite
  4. Redirect non existing inbound links with mod rewrite
  5. Search Engine friendly urls with mod rewrite
  6. mod rewrite for SEO purposes put together
Before you can start using mod_rewrite you need to create a text file named .htaccess and ftp it into your web site root directory. For the Windows users, create a file called htaccess.txt, ftp that to the server, and then rename it to .htaccess.

If you don't know if mod_rewrite is active on your website than can you try it by editing the .htaccess text file and add the follow lines to the file:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteRule ^mod_rewrite\.html$ / [L]
If you open the page http://www.example.com/mod_rewrite.html in your browser and you main web page is showing than mod_rewrite is active on you web site.

Now that you are so far, we can go forward with avoiding duplicate content with the help of mod rewrite.

NEXT » Avoiding duplicate content with mod rewrite



Article Index
1. Use mod rewrite for SEO purposes

2. Avoiding duplicate content with mod rewrite

3. Redirect relocated urls with mod rewrite

4. Redirect non existing inbound links with mod rewrite

5. Search Engine friendly urls with mod rewrite

6. mod rewrite for SEO purposes put together

Featured Sponsors








Sponsor SEOCentro

Featured Links
SEO Services
Simple, Effective pay monthly SEO Services.
Improve Page Rank
High Page Rank Links with Lifetime Guarantee!
Directory Submission Service
Free DMOZ submission with any directory submission plan (starts at $14)
search engine marketing
Jcyber provides Search engine marketing solution to Real estate professionals nationwide.
15 Day Trial for PPC Management
Try PPC on Google while working on your SEO. AdFicient has 10 years experience, Google certified and 24/7 support.
Sponsor SEOCentro

SEO Services
Latest SEO & Search Engine News
Latest seo and search engines blogs news for to stay up-to-date in the search engines marketing world.

Search Engine Optimization Tools
Online search engine tools, made available to help our visitors with their search engine strategy.