thank you very much , it's ok

On Jun 24, 7:48 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
> Try:
>
> <IfModule mod_rewrite.c>
>    RewriteEngine on
>    RewriteBase /photo/
>    RewriteRule    ^$ app/webroot/    [L]
>    RewriteRule    (.*) app/webroot/$1 [L]
> </IfModule>
>
> On 24 Jun 2008, at 00:10, itares wrote:
>
>
>
> > user directory? but i use windows system operation.
> > i had add the line like
> > <IfModule mod_rewrite.c>
> >   RewriteEngine on
> >   RewriteRule    ^$ app/webroot/    [L]
> >   RewriteRule    (.*) app/webroot/$1 [L]
> >   RewriteBase /~photo/
> > </IfModule>
> > but it's also wrong,help me thanks
>
> > On Jun 23, 7:13 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
> >>http://book.cakephp.org/view/37/apache-and-mod_rewrite
>
> >>> If you are installing CakePHP into a user directory 
> >>> (http://example.com/~username
> >>> ), you'll need to modify the .htaccess file in the base directory of
> >>> your CakePHP installation. Just add the line "RewriteBase /
> >>> ~myusername/".
>
> >> I think we need to highlight this section in the manual, everybody's
> >> asking the same thing.
>
> >> On 23 Jun 2008, at 16:31, itares wrote:
>
> >>> app dir:
> >>> E:\PHP\CakePhp\cake_1.1.19.6305\cake_1.1.19.6305
> >>> /app
> >>> /cake
> >>> /vendors
> >>> .htaccess
> >>> index.php
> >>> VERSION.txt
>
> >>> apache httpd.conf set :
> >>> LoadModule rewrite_module modules/mod_rewrite.so
> >>> DocumentRoot "E:\PHP\CakePhp\cake_1.1.19.6305\cake_1.1.19.6305"
> >>> <Location /photo>
> >>> Order deny,allow
> >>> Allow from all
> >>> </Location>
> >>> Alias /photo "E:\PHP\CakePhp\cake_1.1.19.6305\cake_1.1.19.6305\app
> >>> \webroot"
>
> >>> when i request this url :http://localhost:81/photo/
> >>> response:
>
> >>>   * Home
> >>>   * Browse
> >>>   * Comments  href="http://localhost:81/comments/";
> >>>   * About
> >>>   * Login
>
> >>> when i click Comments href ,it response :
>
> >>> Forbidden
>
> >>> You don't have permission to access /comments/ on this server.
>
> >>> who can help me to resolve it ,thanks very much.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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