url_rewrite error
Posted: Sun Jan 21, 2007 2:39 pm
Hey guys,
The following expression isn't quite working, and I'm wondering what I'm doing wrong.
If someone types /wiki/page_name, then they should be redirected to /_home/index.php?page=wiki&name=page_name or, equally, /_home/index.php?page=wiki&name=page_name&do=&id=.
If someone types /wiki/page_name/edit, then they should be redirected to /_home/index.php?page=wiki&name=page_name&do=edit.
internal redirect:
Anyone? 
The following expression isn't quite working, and I'm wondering what I'm doing wrong.
If someone types /wiki/page_name, then they should be redirected to /_home/index.php?page=wiki&name=page_name or, equally, /_home/index.php?page=wiki&name=page_name&do=&id=.
If someone types /wiki/page_name/edit, then they should be redirected to /_home/index.php?page=wiki&name=page_name&do=edit.
Code: Select all
^/wiki([^/].*){0,3}$Code: Select all
/_home/index.php?page=wiki&name=$1&do=$2&id=$3