Quote:
Originally Posted by tomharto
That seems to work great thanks  . Could you explain it so hopefully i can adapt it if needed rather than making a new post?
|
i'm glad it work and of course i explain,
about [L] i guess you know, if the rule is matched then is the last one and skip everything else, if not continue with next rule
now about each rule:
Code:
RewriteRule ^(pages|includes)$ $1 [L]
() is the group, $1 is 1 because if first group, if you have more groups each from left to right will be referred as 1, 2, up to 9
inside the group | is an 'or' that means 'pages' or 'includes' take it literaly
Code:
RewriteRule ^games\/game(.*)$ index.php?page=$1 [L]
Code:
RewriteRule ^(.*)$ index.php?page=$1 [L]
is nothing new here except .*, dot mean any char, star is zero or more. If you need one or more use plus, +, instead
that is all i hope. Anyway if is something unclear just ask,
best regards