Posted by Toby A Inkster on 02/15/07 09:00
Rik wrote:
> As you're using PHP, what's wrong with:
>
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^(.*)$ index.php?nav=$1
>
> And in PHP:
>
> $nav = isset($_GET['nav']) ? explode('/',$_GET['nav']) : array();
Or even:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
And in PHP:
$_GET['nav'] = explode('/',$_SERVER['PATH_INFO']);
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
Navigation:
[Reply to this message]
|