Search in This Blog

Url rewriting in Php

Very simple Url rewriting in Php
Suppose you have a website and you are operating it with query string as below:

you are using two query string "company" and "name". In "company" you are passing "asus" on the other-hand in "name" you are passing "s56c". So the question is that how to convert


The url "" is not SEO friendly. so how to make it SEO friendly?

It is very simple. for this you need to create ".htaccess" in the root folder where your site's  files existing. paste listed below 3 lines in ".htaccess" file.

Options +FollowSymLinks
RewriteEngine on
RewriteRule computer/(.*)/(.*)\.html computer.php?company=$1&name=$2

And this is the content of your "computer.php" file

echo $company."--".$name;

open the computer.php as ""
Next Post »