RewriteEngine on
RewriteRule ^([a-zA-Z0-9_-]+)$ urltest.php?post=$1
<?php
$page = $_GET['post'];
if ($page === 'about') {
require 'about.php';
}else if ($page === 'main') {
require 'main.php';
}else {
/* и тд. и тп.*/
}
?>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]