Hope someone can help me with this,
I need to rewrite a friendly url :
http://mydomain.com/p/variable_1/variable2/
to
http://mydomain.com/register.php?ID=var ... variable_2
where variable is a number between 0 .. 9999,
variable_2 is a alphanumeric string
Thanks in advance
Rewriting a url
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
http://www.ilovejackdaniels.com/cheat-s ... eat-sheet/ may be of help/interest.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Code: Select all
RewriteEngine On
RewriteBase /
Rewriterule ^p/([0-9]+)/([a-Z0-9]+)$ /register.php?ID=$1&username=$2feyd: grr...