PHP-url-library-class
PHP url library class (php url parse)
include("url.php");
$url = new url;
$link = $url->getSegments();
$username = @$link[0];
if($username){
include("profile.php");
}
profile.php: $username //pulls username from url
Scheme: index.php -> (VARIABLES) -> profile.php
Htaccess:
Options -Indexes +FollowSymLinks
RewriteEngine on
RewriteRule ^ajax$ ajax.php [L, NC, QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?page=$1 [QSA,L]