Hello
By editing my .htaccess file, and enabling mod_rewrite, i have made it possible to use urls like this: http://www.example/funny-videos/ass-catches-on-fire and i can get the right content by exploding() the url.
My .htaccess file:
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)$ /index.php?category=$1&trim=$2 [L]
This thing works fine, but i'm a little worried about the search engines, because if a user misspells the address and no content matches the url, the user will still not get a 404 error. Basically, it is impossible right now to generate a 404 error on my website. From what i've heard, this is a bad think when considering search engine rankings. This could probably also generate a lot of dublicate content.
On my website right now, i have 3 categories: funny-videos, funny-pictures and free-wallpapers.
Is it in any way possible to use the rewrite rule, only if one of these categories is in the url, and if not, use errordocument? I tried using {QUERY_STRING}, but from what i can gather, this only works if the url has variables in it with ? and =.
I've tried and tried, and spent days searching for information on this, but it seems that .htaccess information is lacking.
Any help would be very much appreciated.