Currently there is no option to disable that url, so you should disable it manually in the code.
I don't have clear if you want to disable profiles or if you want to disable just those "ugly" urls. If you want the latter, it's impossible.
To disable profiles go to Aleph.php in the folder base-classes and find this:
function setupQueryVars($qvars){
$qvars[] = 'profile_of';
$qvars[] = 'profile';
$qvars[] = 'user_view';
foreach ($this->taxonomies as $taxonomy) {
$aleph_qvars = $taxonomy->getQueryVars();
if ($aleph_qvars !== false)
foreach ($aleph_qvars as $aqvar)
$qvars[] = $aqvar;
}
return $qvars;
}
Now, replace it with:
function setupQueryVars($qvars){
//$qvars[] = 'profile_of';
//$qvars[] = 'profile';
$qvars[] = 'user_view';
foreach ($this->taxonomies as $taxonomy) {
$aleph_qvars = $taxonomy->getQueryVars();
if ($aleph_qvars !== false)
foreach ($aleph_qvars as $aqvar)
$qvars[] = $aqvar;
}
return $qvars;
}
Now in UserQuery.php, in the same folder, find:
function setup_template() {
if (!$this->is_404 && $this->is_profile){
Replace it with:
function setup_template() {
if (0 && !$this->is_404 && $this->is_profile){
I think that should trigger a 404 error on those urls.