Could anyone explain the following two lines please?
RewriteEngine on
RewriteRule ^(.*)-(.*)-(.*)$ index.php?page=$1&id=$2&im=$3
I hope to be a detailed explanation because I do not have any idea about the .htaccess file.
any body can help me? I appreciate any suggestions ..
thank you ..
RewriteRule contains mainly 3 so call it parts:
^(.*)-(.*)-(.*)$this is the rule by which your urls are going to be rewrittenindex.php?page=$1&id=$2&im=$3is the rule for url that is going to be rewritten[R=301]that means it is permanent redirectSo basicaly your rule is going to produce:
http://domain.com/pagenumber-idnumber-imdefinition
From
http://domain.com/index.php?page=pagenumber&id=idnumber&im=imdefinition
I hope I was clear…