Help me with a rewrite rule
I need help with some rewrite rule
Pretty much all my pages look like this:
index.php?key=guild&id=939&view=board
index.php?key=player&id=300941&view=edit
index.php?key=mod&id=41&view=download
开发者_运维问答
Would i be possible to use 1 rewrite rule? Since all my pages have same $_get's
/guild/939/board
/player/300941/edit
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?([^/]+)/([^/]+)/([^/]+)$ index.php?key=$1&id=$2&view=$3 [L,QSA]
Now, to change all those links in your project is possibly quite a lot more work :)
精彩评论