News Feed
Sections




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

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

456Bereastreet.com: Build your own PHP style sheet switcher

Simplesem.com: 4 Steps to Make Your PHP Site Indexed Properly

The Shadow Fox Network: Create Dynamic URLs With Mod_Rewrite and PHP Functions

The bla.st Blog: Process your URLs in PHP with Apache mod_rewrite and wildcard DNS

Debianhelp.co.uk: LAMP (Linux Apache Mysql PHP) Configuration in Debian


Community Events





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


series api wordpress list community project laravel configure introduction framework language podcast release interview threedevsandamaybe developer bugfix library code application

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