6
Guess It'd be a good idea to post the code to use sticky URL's here itself, so that i can eliminate stale-unused registrations on my site.
backup your existing mainfile.php
copy the following code into your existing mainfile.php
include("parameters/whoisit.inc.php");
if (!(empty($serverName)))
{
include("parameters/".$serverName."/mainfile.php");
}
define("WHERE_IS_PERSO","parameters/".$serverName."/");
?>
Now create a directory called "parameters" under your XOOPS root directory.
Place the file 'whoisit.inc.php" in the directory "parameters"
if (!(isset($serverName)))
{
$serverName = $SERVER_NAME;
$serverName = str_replace(".org","",$serverName);
$serverName = str_replace(".net","",$serverName);
$serverName = str_replace(".com","",$serverName);
}
?>
now create directories in "parameters" that reflect your domain name or subdomainname or URL
place your ORIGINAL mainfile.php in these directories.
you can customize mainfile.php within each directory to reflect the components that you want. ie: URL, absolute path etc..
Now this method is just one of the simple ways to use sticky URL's.
The method that I have in production uses a lil more complex method which includes modifying the apache virtualserver parameters. I could post a document to that effect if someone wants me to...