This simply changes the dynamic parts of url, such is page.php?var=$user.
First is mod_rewrite in .htaccess file:
RewriteEngine on
Options +FollowSymLinks
RewriteBase /
RewriteRule ^([0-9Aa-zZ]+)/$ page.php?var=$1 [L]
This means that from the part $1 will be token if the content is lower-upper case letters and numbers and set it after RewriteBase which is domain.
Next is setting or changing the links through the script such as ./page/var instead ./page.php?var=var
But if you have done script and just want to change this way, for example, for users, it is much easier to write a redirect page to avoid editing the whole script.
That is pretty much like this.
Make redirect.php with:
results if seo option is ON:
site.tld/f2/title-here-25/index1.html#92
result if seo option is OFF:
site.tld/topic.php?cid=2&tid=25&page=1#92
seo link description:
f2 = category/forum (2)
title-here-25 = topic name AND topic id (25)
index1.html = page (1) will change to index2, index3 etc
#92 = topic post id (92) for jumping to post