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

[eluser]JOKERz[/eluser]
[quote author="Derek Allard" date="1209515736"]Wow, this thread has grown quickly Wink I confess I haven't read the full thing, but wanted to show off something EE does

Have your cake:
http://www.derekallard.com/blog/post/exp...deignited/

And eat it to!
http://www.derekallard.com/blog/post/250

Also, since you mentioned multi-lang specifically, there are probably a half dozen different methods of generating multi-language sites in EE, but I haven't played much with any of them.[/quote]

how to do that thing??
#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.
#13

[eluser]Derek Allard[/eluser]
For what its worth, disabling one or the other is trivial in EE, as the flexibility of the system is such that it won't get in your way - but your point is well taken xwero.
#14

[eluser]xwero[/eluser]
You could give the surfers a choice which url they prefer but then one url should be redirected with a 301 error to prevent search engine punishment.




Theme © iAndrew 2016 - Forum software by © MyBB