[SOLVED] Simple .htaccess Redirect Not Functioning as Expe..
Posted: Mon Aug 02, 2010 8:48 pm
(Never mind, it's fixed now, kinda weird)
Hello, world!
I'm working on my blog, and I'm trying to employ the model-view-controller programming framework. I'd like to put all of the actual public files into /public, not / . Simple, right? So I whipped up a quick .htaccess file (something I'm new to) like this:
[text]
RewriteEngine on
RewriteRule ^(.*)$ public/index.php?passed=$1[/text]
The function is relatively obvious. Everything is sent to public/index.php in the "passed" get field. But it doesn't work. I set index.php to output whatever came in "passed", and it reads "public/index.php".
Thanks in advance.
Hello, world!
I'm working on my blog, and I'm trying to employ the model-view-controller programming framework. I'd like to put all of the actual public files into /public, not / . Simple, right? So I whipped up a quick .htaccess file (something I'm new to) like this:
[text]
RewriteEngine on
RewriteRule ^(.*)$ public/index.php?passed=$1[/text]
The function is relatively obvious. Everything is sent to public/index.php in the "passed" get field. But it doesn't work. I set index.php to output whatever came in "passed", and it reads "public/index.php".
Thanks in advance.