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
Advice
Moderator: General Moderators
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.
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.