My Yii powered website has been live for about a month now (http://tasta.be) and it's going pretty good. Right now, I'm heavily invested in SEO. I've managed to make my URLs a little bit more URL friendly: http://tasta.be/videos/20 for example, but then I got stuck.
I got the documentation and read all of it, but I think I'm currently not making the click to wrap my head around it. There are two things I want to accomplish, but I fail trying to do so:
- I've got a URL-field in my database for my videos model, so the ideal situation would be: http://tasta.be/videos/id-urlfield/. An example would be: http://tasta.be/vide...ook-antichamber (/videos/view / should redirect to the one without view as well, because now Google is complaining about two URLs for the same page)
- Pretty much the same but for my categories (example: http://tasta.be/videocategorie/view/1), should be /videocategorie/urlfield or even better: tasta.be/url-field
Maybe this is a lot to ask, but without help I don't think I'm ever going to achieve what I want. My current .htaccess looks like this:
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.phpIf somebody could help me, I would be so grateful. If I manage to get it working, I'll give away some Steam codes for Dungeonland and The Showdown Effect as a token of my appreciation.

Help












