Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!
Moderator: General Moderators
-
kirby
- Forum Newbie
- Posts: 2
- Joined: Wed Nov 15, 2006 8:59 am
Post
by kirby »
Hi, I need help with rewrite rule...
address
should be rewrited to
Code: Select all
name.domain.com/show.php?w=something
thanks a lot
-
pickle
- Briney Mod
- Posts: 6445
- Joined: Mon Jan 19, 2004 6:11 pm
- Location: 53.01N x 112.48W
-
Contact:
Post
by pickle »
What have you tried so far? What have you researched?
http://www.ilovejackdaniels.com has a mod_rewrite cheat sheet that's quite useful.
Gimme's are hard to find on these forums

Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
kirby
- Forum Newbie
- Posts: 2
- Joined: Wed Nov 15, 2006 8:59 am
Post
by kirby »
ye, sorry for stupid question, i already figured it out
Code: Select all
RewriteEngine on
RewriteRule ^show/([A-Za-z0-9-]+)?$ show.php?w=$1 [L]
I don't know if it's absolutely correct but works so..

-
pickle
- Briney Mod
- Posts: 6445
- Joined: Mon Jan 19, 2004 6:11 pm
- Location: 53.01N x 112.48W
-
Contact:
Post
by pickle »
Cool, good to hear.
Welcome to phpdn by the way.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.