Tamas is the founder of Demoscene, and has created dozens of PHP-based sites. Now he's doing ebusiness work for IFS Ltd. in Hungary, and composing jazzy drumnbass and bigbeat tunes, which he hopes to have released.
What is the mod_rewrite Solution? But what does it exactly do? Hey! Here comes the whole point of this article! mod_rewrite catches URLs that meet specific conditions, and rewrites them as it was told to. For example, you can have a non-existing http://www.mysite.com/anything URL that is rewritten to: http://www.mysite.com/deep/stuff/very_complicated_url?text=having_lots_of_extra_characters Did you expect something more? Be […]
Think you know all there is to know about Apache’s mod_rewrite? Think again! Tamas gives a complete run-down of its capabilities, with practical and timesaving examples galore.
For Advanced Users I mentioned user-friendliness in the introduction, and haven’t dealt with it. First, let’s imagine we’re having a huge download site that has the downloadable software separated into categories, each with a unique id (which is used in the SQL SELECTs). We use links like open.php?categoryid=23487678 to display the contents of a category. […]
Conditions But that’s not all! Though RewriteRule gives you an opportunity to have professional URL rewriting, you can make it more customized using conditions. The format of the conditions is simple: RewriteCond Something_to_test Condition Any RewriteCond condition affects the behaviour of the following RewriteRule, which is a little confusing, as RewriteCond won’t be evaluated until […]