Well, I don't know what your page is supposed to look like, so I can't say for sure. The only thing I see is that your images are using relative URLs, so instead of looking for them in /images/whatever.jpg, the browser is looking for them in /computers/373313/images/whatever.png.
You need to use absolute or root-relative URLs instead (I prefer root-relative):
/images/whatever.jpg
As for the other categories, there's two ways you might approach that:
1) if there are only a few categories, just add new RewriteRules for each one.
2) if there are a lot, or if they might change, match a pattern instead:
Code:
# in your .htaccess file...
RewriteEngine On
# these lines must come first - with this approach, you'll redirect a lot of legit URLs unless you're careful.
# these conditions allow redirects *only* for URLs that do not point at real files/folders:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ([a-zA-Z]+)/?([0-9]*) /index.php?$1&c=$2
# [a-zA-Z]+ matches one or more letters before the first forward slash.
# This is now $1 ([0-9]* is now $2).
# note that if your categories need to include numbers, dashes, underscores, etc., you'll need to change this group.
Bookmarks