I am using wamp and developing in eclipse using a working directory in workspace. I seem to be having a problem with the rewrite rule pointing to the wrong place though.
using the books example .htaccess file I have an error log with this statement
[Fri Aug 12 07:31:24 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/Users
My actual file location to the trackstar index file is
c:\Users\nick\workspace\trackstar
I am using an alias named trackstar that points to that location.
I don’t know enough about rewrites to understand what is going on. Anyone else use wamp? if so how did you overcome this problem?
Seem to be a windowz problem only (*). I have done rewriting under linux and it works well. However, when doing the trackstar tutorial, I ran into the same problem, which gave me an idea. Do the rewriting like this:
Note the /trackstar/index.php instead of just index.php. Then it worked.
The "/trackstar/" comes from the httpd.conf file (the Alias line):
# Yii trackstar tutorial.
<Directory "C:/webtest/trackstar">
Options None
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Alias /trackstar "C:/webtest/trackstar"
Hope this help.
*: Have not tested the application setting under linux yet.