Forum Moderators: phranque
RewriteRule ^([^-]+)(-)[^-]+)-photos(.*)\.php& /photosmodel.php?mak=$1&mod=$2 [NC,L]
I think there are three problems:
() defines a variable, so variable 2, $2, will always be -.
Your rule ends with & and should end with $. Only files that are formatted as your-file-photos.php& will qualify.
You are missing a ( on your third variable.
I would recommend:
RewriteRule ^([^-]+)-([^-]+)-photos(.*)\.php$ /photosmodel.php?mak=$1&mod=$2 [NC,L]
I am not sure what this (.*) is in your rule for, but [^.]* may prove to be more efficient.
Hope this helps.
Justin