2009年2月19日星期四

Re: [fw-mvc] QuickStart GuestBook Link Not working - Beginner

Hector Virgen wrote:
>
> If your index.php file does not reside on the web root of the server, you
> may need to modify your .htaccess file to point to the correct location.
>
> You can either set your rewrite rule to point to /mysite/index.php
> (relative
> to the document root) or use the RewriteBase [1] to specify the base
> directory for all rewrites. Here is my .htaccess file, just replace
> /mysite/with the path to your index.php file:
>
> RewriteEngine On
> RewriteBase /mysite/
> RewriteCond %{REQUEST_FILENAME} -s [OR]
> RewriteCond %{REQUEST_FILENAME} -l [OR]
> RewriteCond %{REQUEST_FILENAME} -d
> RewriteRule ^.*$ - [NC,L]
> RewriteRule ^.*$ index.php [NC,L]
>
> 1. http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteBase
>
> -Hector
>
>

Thanks for that info! The RewriteRule from the downloaded source was saying:
RewriteRule ^.*$ /index.php [NC,L]

(with a slash before the index), with that one removed it all works!

Great!

Roalt


--
View this message in context: http://www.nabble.com/QuickStart-GuestBook-Link-Not-working---Beginner-tp21906196p22105488.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: