Revision: 25861
Updated Code
at April 12, 2010 15:03 by frankyfish
Updated Code
// HTACCESS FILE
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php
</IfModule>
// PHP SIDE
<?php
// Base host for the client assets (js, css, image)
$host = dirname($_SERVER["SCRIPT_NAME"])."/";
// Base root for the server side (like for the php inclusion)
$root = dirname(__FILE__)."/";
// Array of arguments passed in the adresse bar
$args = explode("/",str_replace(dirname($_SERVER["SCRIPT_NAME"])."/", "", $_SERVER["REQUEST_URI"]));
?>
Revision: 25860
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 12, 2010 12:11 by frankyfish
Initial Code
// HTACCESS FILE
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php
</IfModule>
// PHP SIDE
<?php
// Base root from the current file
$root = dirname($_SERVER["SCRIPT_NAME"])."/";
// Array of arguments passed in the adresse bar
$args = explode("/",str_replace(dirname($_SERVER["SCRIPT_NAME"])."/", "", $_SERVER["REQUEST_URI"]));
?>
Initial URL
Initial Description
Initial Title
Simple PHP URL ReWritee
Initial Tags
url, php
Initial Language
PHP