News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NETTUTS.com:
A Deeper Look at mod_rewrite for Apache
September 16, 2009 @ 10:43:39

This new tutorial from NETTUTS.com (by Joseph Pecoraro) takes a more detailed look at the mod_rewrite module for Apache and shows how it can work with PHP to grab information directly from the URL.

When people think of .htaccess configuration the first thing that pops into most people's minds is URL manipulation with mod_rewrite. People typically get frustrated with mod_rewrite's complexity. This tutorial will walk you through everything you need to know for the most mod_rewrite tasks.

He looks briefly at what the module is, what it can let you do and how to get it up and running on your web server instance. For his purposes, he puts his rewrite rules into an .htaccess file in the project's directory for easy updating (as opposed to part of the main Apache config files). He gives several examples of pattern matching and regular expressions to take the given URL and massage it into something else. A PHP example shows how to grab the rewritten information from the URL and put it into an example page.

0 comments voice your opinion now!
modrewrite tutorial apache rewrite


blog comments powered by Disqus

Similar Posts

Emran Hasan's Blog: Quick start on new Facebook PHP SDK (IFrame based)

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 12)

Carson McDonald's Blog: PHP MySQLi and Multiple Prepared Statements

NetTuts.com: Deciphering Testing Jargon

Matthias Noback: Symfony2: Add a global option to console commands and generate a PID file


Community Events





Don't see your event here?
Let us know!


interview tips release library introduction opinion zendserver package symfony api unittest podcast series update language laravel community framework deployment install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework