Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To 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, 04:26 AM
Authorized User
 
Join Date: Mar 2009
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to redirect the url using .htaccess

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 23rd, 2009, 12:03 AM
Authorized User
 
Join Date: Feb 2009
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default

Try this

RewriteRule ^user/([a-zA-Z0-9-]+)$ user.php?id=$1 [L]

Regards
Anees
 
Old March 28th, 2010, 07:59 AM
Authorized User
 
Join Date: Mar 2009
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to encrypt php code

Dear all

how to encrypt php code
Please do the needful.

Thanks,
Thava





Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Redirect based on given URL somnath.kartic VS.NET 2002/2003 1 August 2nd, 2012 08:21 AM
redirect url question newbie07 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 August 22nd, 2007 12:48 PM
Redirect URL to File path han_nomad C# 12 February 2nd, 2007 06:26 AM
Page redirect based on URL somnath.kartic ASP.NET 1.0 and 1.1 Basics 0 April 3rd, 2006 04:45 AM
URL Redirect Help david29118 Classic ASP Basics 3 April 3rd, 2005 06:09 PM





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