Do you want to hide the URL?
If so, you can easily do it without much thinking:
say url=http://yourdomain.com/(NR HERE)
put this .htacces in your main folder:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /decode.php [L]
and make this decode.php
PHP Code:
<?php
$nav = $_SERVER['REQUEST_URI'];
$parts = explode('.com/', $nav);
$url = $parts[1];
if($url=="1"){
DO ACTION FOR case 1
}
if($url=="2"){
DO ACTION FOR CASE 2
}
ETC ETC
}
?>
You can also use many parts like 0=false and 1=true if you need. such as:
http://domain.com/1-1-0 and explode parts[1] at "-".
That's what I have for one of my pages, and it is very very neat. I have been using this format for a while now. I use the 2nd part for w/e purpose, like in my music page, I use it for the artist, so it looks like
http://domain.com/ARTIST