You could try defining something like this in your httpd.conf. You
must have mod_rewrite enabled.

<VirtualHost *:80>
    DocumentRoot <dir to your app document root>
    ServerName sandbox     --or the name you want for your app example
    <Directory <dir to your app document root>>
        AllowOverride all
    </Directory>
</VirtualHost>

Then you need to define sandbox as alias of your localhost in /etc/
hosts or c:\windows\system32\drivers\hosts.
Restart apache and voila.

Aldo.

On Apr 21, 4:12 pm, cake php <[EMAIL PROTECTED]> wrote:
> Hi i also have one problem with mod_rewrite( i am not sure).
>
> i use iis5 and apache, both disable mod_rewrite.
>
> i delete .htaccess files. and uncomment DEFINE in core.php.
>
> The same blog tutorial in cakephp manual.
>
> routes.php:     $Route->connect('/', array('controller'=>'posts',
> 'action'=>'index'));
>
> My problem is;
>
> The URL:http://localhost/index.phpcan be accessed.
>
> But link in this page can not be accessed: page not found
>
> the links are:
>
> http://localhost/index.php/posts/view/1http://localhost/index.php/posts/delete/1http://localhost/index.php/posts/view/3
>
> is there any stange about those URL?
>
> i don't know what happened.
>
> mod_rewrite issure? or other configure error?
>
> Thanks
>
> On 4月17日, 下午3时56分, jyrgen <[EMAIL PROTECTED]> wrote:
>
> > For testing purposes you can disable the mod_rewrite
> > feature by renaming the .htaccess files to _.htaccess
> > with the DEFINE in app/config/core.php uncommented.
>
> > if it works, than you have to check your apache conf
> > to see if it allows overwriting settings by htaccess files at all.
>
> > greetings, jyrgen


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to