Hi Brothers,

I m completely new at PHP, i dont know anything about php
but from different sites i have come to know that i can redirect my unfriendly url to friendly urls. so i have started a short project but i dont know how to make url writing plz guide me.

I have 2 pages, 1)Index.php 2)cats.php
source code is for index.php is


<p><a href="http://www.example.com/cats.php?cat=1">category1</a></p>
<p><a href="http://www.example.com/cats.php?cat=2">category2</a></p>
<p><a href="http://www.example.com/cats.php?cat=3">category3</a></p>
<p><a href="http://www.example.com/cats.php?cat=4">category4</a></p>
<p><a href="http://www.example.com/cats.php?cat=5">category5</a></p>
<p><a href="http://www.example.com/cats.php?cat=6">category6</a></p>


and the source code for cats.php is

echo $txt;



I want to redirect



i have also updated .htaccess file by code provided by seochat.com from url rewriting code section

please tell me or provide me source files so i can make url rewriting

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.