Call Us : 951 203 877

Email:

Onsite SEO - Chapter 3 - URL Rewriting

What's an URL?

It's the abbreviation of "Uniform resource locator" that we all know by Web Address. 
The correct format of an URL it's important on the SEO as it identify and match your keywords with your Web address.

Common mistakes:

Webs built with PHP:

How to use .htacess to convert your URL's to a more friendly ready version:

This method is defined as 301 redirection. Below you can find some technics to convert your URL:
# move a single page
Redirect 301 /oldpage.html http://www.example.com/newpage.html

# move your entire site
Redirect 301 / http://www.example.com/

# change all html to php
RedirectMatch 301 (.*).html$ http://www.example.com$1.php

# change all aspx to php
RedirectMatch 301 (.*).aspx$ http://www.example.com$1.php

# redirect www to non www
Options +FollowSymLinks 
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^example.com
RewriteRule (.*) http://example.com/$1 [R=301,L]

# redirect non www to www
Options +FollowSymLinks 
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^yoursite.com [NC] 
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]

# redirect yoursite.com/index.php to yoursite.com
Options +FollowSymLinks
RewriteEngine on
# index.php to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /.*index.php HTTP/
RewriteRule ^(.*)index.php$ /$1 [R=301,L]


Webs built in Windows IIS:

Use IIS Server and follow the steps to redirect your Url's.

More guides soon...