Using mod_rewrite
Posted: Wed Feb 13, 2008 10:58 am
Hi,
I now understand mod_rewrite to a greater extent.
However, I was wondering if anyone could tell me how to re-write my rule so that i can simply declar my variable straight after the domain name
e.g.
What I want to do is re-write: http://www.site.com/registration - where registration would be a variable
At the moment I have to write it like this: http://www.site.com/index/registration - I basically want to get rid of "index".
Here is my rule: RewriteRule (.*)//(.*) $1.php?parameters=$2
Thanks.
I now understand mod_rewrite to a greater extent.
However, I was wondering if anyone could tell me how to re-write my rule so that i can simply declar my variable straight after the domain name
e.g.
What I want to do is re-write: http://www.site.com/registration - where registration would be a variable
At the moment I have to write it like this: http://www.site.com/index/registration - I basically want to get rid of "index".
Here is my rule: RewriteRule (.*)//(.*) $1.php?parameters=$2
Thanks.