News Feed
Jobs Feed
Sections




News Archive
True Hacker! Blog:
Digg style clean URLs with PHP and Apache
November 29, 2006 @ 09:57:00

The 'true hacker!' blog has a new post today that gives you a quick four step process for creating some clean, Digg-style URLs for your site with some simple Apache configuration changes (mod_rewrite).

You might have noticed that Digg has a cool way of maintaining clean URLs. Digg actually uses LAMP - Linux/Apache/MySQL/PHP. But where are the .php extensions? The answer is here. 4 steps to implement your own Digg style clean URLs.

His method turns on Apache's rewrite engine (you do have mod_rewrite enabled, don't you?) and adds a rule to push all of the requests to two default PHP files. There's also a ForceType method that can be used to achieve the same effect. One .htaccess file later, you're in business and the PHP script only needs to access the $_SERVER['REQUEST_URI'] value to get the parameters.

0 comments voice your opinion now!
digg style clean url apache modrewrite rule forcetype digg style clean url apache modrewrite rule forcetype


blog comments powered by Disqus

Similar Posts

Alexander Netkachev's Blog: How to run a PHP application together with Zend Framework application

Rob Allen's Blog: Setting up PHP & MySQL on OS X 10.6 Snow Leopard

Phantom Reference Blog: Hello NetBeans, this is PHP!

Dean Clatworthy: Theming/styling error messages in Symfony 2

Christian Spanning\'s Blog: PHP development on Mac OS X


Community Events









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


tool development community testing opinion introduction framework database api release unittest code language object zendframework2 composer example phpunit interview podcast

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