Call Us : 951 203 877 / 664 604 920


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

# move your entire site
Redirect 301 /

# change all html to php
RedirectMatch 301 (.*).html$$1.php

# change all aspx to php
RedirectMatch 301 (.*).aspx$$1.php

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

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

# redirect to
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...