| | |
Please guide me in URL Rewriting plzzzzzzzzzzz
![]() |
•
•
Join Date: Oct 2009
Posts: 2
Reputation:
Solved Threads: 0
Hi Brothers,
I m completely new at PHP, I wants to learn URL Rewrting. I dont know anything about php.
I have 2 pages,
1)Index.php
2)cats.php
source code is for index.php is
<html>
<body>
<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>
</body>
</html>
and the source code for cats.php is
<html>
<body>
<?php
$txt=$_GET['cats'];
echo $txt;
?>
</body>
</html>
-----------------------------------------------------------------------------
I want to redirect
http://www.example.com/cats.php?cat=1
http://www.example.com/cats.php?cat=2
http://www.example.com/cats.php?cat=3
to
http:/www.example.com/cats/1
http://www.example.com/cats/2
http://www.example.com/cats/3
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. I will be very thank full if some one provide me source files so i can easily understand from that.
I m completely new at PHP, I wants to learn URL Rewrting. I dont know anything about php.
I have 2 pages,
1)Index.php
2)cats.php
source code is for index.php is
<html>
<body>
<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>
</body>
</html>
and the source code for cats.php is
<html>
<body>
<?php
$txt=$_GET['cats'];
echo $txt;
?>
</body>
</html>
-----------------------------------------------------------------------------
I want to redirect
http://www.example.com/cats.php?cat=1
http://www.example.com/cats.php?cat=2
http://www.example.com/cats.php?cat=3
to
http:/www.example.com/cats/1
http://www.example.com/cats/2
http://www.example.com/cats/3
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. I will be very thank full if some one provide me source files so i can easily understand from that.
![]() |
Similar Threads
- URL Rewriting, or is it? (ASP.NET)
- URL Rewriting (PHP)
- URL Rewriting Question??? (PHP)
- Url rewriting basic? (PHP)
- url-rewriting (PHP)
- Url Rewriting??? (PHP)
- URL ReWriting Problem? (PHP)
- URL Rewriting pass query string (Linux Servers and Apache)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: I need help rewriting dynamically-generated URLs
- Next Thread: Help me....Diskless Pc booting from Linux server.
| Thread Tools | Search this Thread |
apache apple asus bbc bluegene centos cisco citrix cloud cloudcomputing debian dell desktops development distributions distros drivers economy eeepc energy enterprise fedora fsf gadgets gentoo gos government gpl hardware hp hyper-v ibm java jobs kindle knoppix kvm laptop laptops lawsuits licensing limo linustorvalds linux linuxfoundation linuxmagazine magazines microserver microsoft mobile mobilephones netbook netbooks news novell olpc open openmoko openoffice opensolaris opensource opensuse openvz operatingsystems os patents pc pcworld plathome politics print qumranet redhat rhel robot russia sco server servers slackware software solaris source stallman sun supercomputer support tivo torvalds training tv ubuntu umpc unix virtualization vmware windows x86 xandros xen





