biz directory re-write mod
Index.php Page Modification:
=================
Line 41
$category_url = $dir.'index.php?c='.$parent_categories[$x]["id"];
Replace with:
$category_url = $dir.$parent_categories[$x]["id"].'-webmaster.html';
--------------------------------
Line 60
$replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.'index.php?c='.$subcategories[$x]["id"]);
Replace with:
$replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.$subcategories[$x]["id"].'-webmaster.html');
--------------------------------
Line 66
$replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.'index.php?c='.$subcategories[$x]["id"]);
Replace with:
$replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.$subcategories[$x]["id"].'-webmaster.html');
--------------------------------
Line 76
$replace = array("[CATEGORY_NAME]" => $current_category["name"], "[SUBMISSION_URL]" => $dir.'add_url.php?c='.$c);
Replace with:
$replace = array("[CATEGORY_NAME]" => $current_category["name"], "[SUBMISSION_URL]" => $dir.$c.'-add-url.html');
--------------------------------
Line 110
if ($c != 1) { $query = "index.php?c=$c"; };
if (($c != 1) & $s != 1){
$query .= "&s=$s";
}elseif ($s != 1){
$query = "index.php?s=$s";
};
Replace with:
if ($c != 1) { $query = "$c-webmaster.html"; };
if (($c != 1) & $s != 1){
$query = "$c-$s-webmaster.html";
}elseif ($s != 1){
$query = "$c-$s-webmaster.html";
};
Modification of add_url.php Page.
========================
Line 41:
$category_url = $dir.'index.php?c='.$parent_categories[$x]["id"];
Replace with:
$category_url = $dir.$parent_categories[$x]["id"].'-webmaster.html';
Addition to Htaccess
======================
RewriteEngine On
RewriteRule index.html$ /index.php [PT]
RewriteRule ^([0-9]+)-webmaster.html$ /index.php?c=$1
RewriteRule ^([0-9]+)-webmaster.html$ /index.php?s=$1
RewriteRule ^([0-9]+)-([0-9]+)-webmaster.html$ /index.php?c=$1&s=$2
RewriteRule ^([0-9]+)-add-url.html$ /add_url.php?c=$1
Index.php Page Modification:
=================
Line 41
$category_url = $dir.'index.php?c='.$parent_categories[$x]["id"];
Replace with:
$category_url = $dir.$parent_categories[$x]["id"].'-webmaster.html';
--------------------------------
Line 60
$replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.'index.php?c='.$subcategories[$x]["id"]);
Replace with:
$replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.$subcategories[$x]["id"].'-webmaster.html');
--------------------------------
Line 66
$replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.'index.php?c='.$subcategories[$x]["id"]);
Replace with:
$replace = array("[CATEGORY_NAME]" => $subcategories[$x]["name"], "[CATEGORY_URL]" => $dir.$subcategories[$x]["id"].'-webmaster.html');
--------------------------------
Line 76
$replace = array("[CATEGORY_NAME]" => $current_category["name"], "[SUBMISSION_URL]" => $dir.'add_url.php?c='.$c);
Replace with:
$replace = array("[CATEGORY_NAME]" => $current_category["name"], "[SUBMISSION_URL]" => $dir.$c.'-add-url.html');
--------------------------------
Line 110
if ($c != 1) { $query = "index.php?c=$c"; };
if (($c != 1) & $s != 1){
$query .= "&s=$s";
}elseif ($s != 1){
$query = "index.php?s=$s";
};
Replace with:
if ($c != 1) { $query = "$c-webmaster.html"; };
if (($c != 1) & $s != 1){
$query = "$c-$s-webmaster.html";
}elseif ($s != 1){
$query = "$c-$s-webmaster.html";
};
Modification of add_url.php Page.
========================
Line 41:
$category_url = $dir.'index.php?c='.$parent_categories[$x]["id"];
Replace with:
$category_url = $dir.$parent_categories[$x]["id"].'-webmaster.html';
Addition to Htaccess
======================
RewriteEngine On
RewriteRule index.html$ /index.php [PT]
RewriteRule ^([0-9]+)-webmaster.html$ /index.php?c=$1
RewriteRule ^([0-9]+)-webmaster.html$ /index.php?s=$1
RewriteRule ^([0-9]+)-([0-9]+)-webmaster.html$ /index.php?c=$1&s=$2
RewriteRule ^([0-9]+)-add-url.html$ /add_url.php?c=$1
Comment