Welcome Guest, Not a member yet? Register   Sign In
The urls and the surfers
#12

[eluser]xwero[/eluser]
it isn't that difficult to do yourself
Code:
class Blog extends Model
{

   function get_post($id)
   {
      if(is_numeric($id))
      {
         return $this->db->getwhere('blog',array('id'=>$id))->row->content;
      }
      elseif(is_string($id))
      {
          $first_word = substr($id,0,strpos('-',$id)-1);
          return $this->select('content')->from('blog')->like('title',$first_word,'after')->row->content;
      }
      else
      {
         return '';
      }
   }
}
It's not worked out but i think you get the idea.

But what Derek sampled is what i think is not good for search engine page ranking. Two urls with the same content on the same site are punished with lower page ranking or even worst moved over to the the second index.


Messages In This Thread
The urls and the surfers - by El Forum - 04-28-2008, 09:21 AM
The urls and the surfers - by El Forum - 04-28-2008, 09:30 AM
The urls and the surfers - by El Forum - 04-28-2008, 12:51 PM
The urls and the surfers - by El Forum - 04-29-2008, 12:55 AM
The urls and the surfers - by El Forum - 04-29-2008, 02:45 AM
The urls and the surfers - by El Forum - 04-29-2008, 03:07 AM
The urls and the surfers - by El Forum - 04-29-2008, 04:27 AM
The urls and the surfers - by El Forum - 04-29-2008, 05:01 AM
The urls and the surfers - by El Forum - 04-29-2008, 01:35 PM
The urls and the surfers - by El Forum - 04-29-2008, 03:38 PM
The urls and the surfers - by El Forum - 05-04-2008, 04:40 AM
The urls and the surfers - by El Forum - 05-04-2008, 05:39 AM
The urls and the surfers - by El Forum - 05-04-2008, 06:27 AM
The urls and the surfers - by El Forum - 05-04-2008, 06:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB