so i use 4images
i have-it on an folder - www.kreasta.be/4i (i can move-it on root if necesarry)
i want "instant subdomains" (knorr like:P)
4images makes the user gallery like this: http://www.kreasta.be/4i/member.php?act ... e&user_id=1
i know that if i`l use this htaccess:
- Code: Select all
<files *>
Options MultiViews
</files>
and this script:
- Code: Select all
<?
// Settings
///////////////////////////////////////////
$url = "http://www.kreasta.be/4i";
$table = "4images_users"; //do not edit if you have not changed table prefix
// Code
///////////////////////////////////////////
include "config.php";
$a_url = $_SERVER["REQUEST_URI"];
$i = explode("/", $a_url);
$b = count($i);
$b = $b-1;
$i = str_replace(array("%20"), " ", $i[$b]);
if (($i != "") and ($i != "guest"))
{
$db = mysql_connect("$db_host", "$db_user", "$db_password") or die ("Error");
@mysql_select_db("$db_name", $db) or die ("DB not found");
$result = mysql_query("SELECT user_id FROM `$table` WHERE user_name='$i'");
$row = mysql_fetch_array($result);
$id = $row['user_id'];
header("Location: ".$url."/member.php?action=showprofile&user_id=".$id."");
}
else
{
header("Location: ".$url."");
}
?>
i can get a redirection from www.kreasta.be/4i/who/kreasta to http://www.kreasta.be/4i/member.php?act ... &user_id=1
but how do i do it from kreasta.kreasta.be to >>>> http://www.kreasta.be/4i/member.php?act ... &user_id=1 and in the address bar to remain kreasta.kreasta.be.
sorry, i am so tiered, i am looking 4 hellp by a several weeks and nothing...
pls.. help me somehow[/code]