Mod Rewrite Help
Posted: Wed May 23, 2007 4:58 am
I am posting this here because there is regex and whatnot with mod_rewrite. If this is in the wrong forum please move it.
And on to my question...
I want to make a rewrite rule that would turn this:
http://server/news/
into:
http://server/news.php
but I also want to turn any extra directorys into GET params like this:
http://server/news/new/
into:
http://server/news.php?_view=new
As I am terrible at regex and nearly clueless on mod_rewrite I was wondering if I could get a little help.
And on to my question...
I want to make a rewrite rule that would turn this:
http://server/news/
into:
http://server/news.php
but I also want to turn any extra directorys into GET params like this:
http://server/news/new/
into:
http://server/news.php?_view=new
As I am terrible at regex and nearly clueless on mod_rewrite I was wondering if I could get a little help.