Advice

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

Post Reply
tutorialstuff
Forum Newbie
Posts: 1
Joined: Tue May 01, 2007 9:05 am

Advice

Post by tutorialstuff »

Well I didn't see any other section to post this, so if it's in the wrong section I apologize.

I run a PHP/MySQL driven site at tutorialstuff.com.

My question is concerning the RewriteRule in htaccess that allows you to rewrite I'm guessing any code in your URL's after the question mark, I'm not really sure. Does anybody know of a place to get some in depth info on this or if it's advantageous to do this rather than how I have it now.

Any advice is appreciated.

Thanks - Mike
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

You can use the rewrite rule to do tons of stuff. The most common question on these forums are about how to change

http://mydomain.ca/pearl_jam/daughter/

into

http://mydomain.ca?artist=pearl_jam&song=daughter

It's used frequently to allow for human-readable urls - so that someone can type in http://mydomain.ca/pearl_jam/daughter/ & get the page displayed when http://mydomain.ca?artist=pearl_jam&song=daughter is requested.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply