Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2009, 01:38 AM
Authorized User
 
Join Date: Mar 2009
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default php url rewriting

Dear all,

How to redirect the url by .htaccess for the below requirement.
www.sample.com/user/xxy to www.sample.com/user.php?id=xxy
If possible please provide the code. Please do the needful.

Thanks,
Thava.
 
Old March 16th, 2009, 10:20 PM
Authorized User
 
Join Date: Jan 2009
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Default

here is an example for redirection

RewriteCond %{REQUEST_URI} http://divinequran.com/koran/index.php
RewriteRule ^index.php http://www.divinequran.com/index.php [R]
__________________
divinequran.com

Last edited by svar; March 16th, 2009 at 10:22 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Implementing URL Rewriting retroviz BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 February 21st, 2008 01:18 PM
URL rewriting with URL forwarding mtabyana BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 0 October 22nd, 2007 08:22 AM
URL Rewriting Amateur BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 August 9th, 2007 01:54 AM
Disable the url rewriting in DotNetNuke 4.0.3 rskshiva General .NET 1 August 16th, 2006 01:17 PM
Discussion: URL Rewriting planoie ASP.NET 1.x and 2.0 Application Design 2 January 25th, 2006 03:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.