Hi,
I think the following should be added to search.php in class CWebSearch.
I just compare the entries, but better would be to really check the main and subcategories if they exist.
Google and CO once indexd the pages, they will always index it and have the problem with double title and so on.
class CWebSearch extends BaseModel
{
var $mSearch;
var $nice_url;
var $uri;
function __construct()
{
$conn2 = getConnection();
$urll = $_SERVER["REQUEST_URI"];
$vars = explode("/",$urll);
$main_cat = $vars[1]; // the user id of the user profile we're at
$sub_cat = $vars[2]; // the user id of the user profile we're at
$result_main_sub=$conn2->osc_dbFetchResult("SELECT s_name FROM oc_t_category_description WHERE s_name = '$main_cat' OR s_name = '$sub_cat'");
if($result_main_sub>0) {
}else{
$this->do404() ;
return ;
}
parent::__construct() ;
Now google has a 404 Code for all the silly pages which does not exist.
Permalinks activated
kind regards
Manuel