Permalinks PHP Class

This is the PHP Class file used for Permalinks. This class performs the
Output Replacement operation, and replaces all the php-links in the
website with their corresponding permalinks aka seo-links.
Rewrites PHP Class

This is the PHP Class file for Rewriting function of the Engine. It
maps/rewrites the Permalinks aka SEO URLs to their corresponding PHP
file.
.htaccess File for URL Rewriting in Apache Server

This .htaccess file contains the URL Rewriting rules for Apache web
server.
Definition:
If any request is made to your server, which is not a file and not a
directory, that will be a Permalink request, it will be rewritten to
"rewrite.php" file, and then "rewrite.php" will handle the request.
Permalinks Class Object Created

We must create the Object of Permalinks Class in the Header file.
Note: We must include it before including "output_handling_include.php"
file because we are using this object in "output_handling_include.php".
Calling Permalink Output Handler Function for new Output

Here we are passing the complete $output of website to the Permalinks
class function $permalink->getOutput($output), which returns the output
with links replaced with their corresponding Permalinks aka SEO URL
links.
Permalink Output Handler Added

This Handler is used to insert a specific Handler into the Permalinks
Handlers List. This handler will be called, wherever you want to show
the Permalinks.

Examples:
add_permalink_handler("news");
add_permalink_handler("articles");
add_permalink_handler("threads");