Youhouh ! I finally got it :)

Some changes I made in the .htaccesses did the trick, now all seems to
be ok, it's great :)

Thank you again for your help !!

Fabian Pijcke

On Sep 4, 11:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I tried differents configurations but can't make it work :(
>
> I'll try again tomorrow, time to sleep for me ...
>
> And a great THANK YOU for all your suggestions / comments / help !
>
> On Sep 4, 10:32 pm, francky06l <[EMAIL PROTECTED]> wrote:
>
> > I have set another application (gumiz) on OVH, basically the webroot
> > resides on the www directory :
>
> > www/gumiz
> >   - index.php
> >   + js
> >   + img
> >   + css
>
> > I have set the application and cake into the home directory : foo.
> > Cake is in foo/cake, gumiz my application is in foo/gumiz.
>
> > /home.8/l/o/a/loanlnk/foo
> >   + apps
> >         + gumiz
> >   + cake
> >         - app_controller.php
> >         + views
> >         + models
> >         //etc ...
>
> > A look to the index.php (the differences from the distribution file)
> > in webroot (ie : wwww/gumiz):
>
> >         if (!defined('ROOT')) {
> >                  //define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP 
> > DIRECTORY IS
> > LOCATED. DO NOT ADD A TRAILING DIRECTORY SEPARATOR');
> >                  //You should also use the DS define to separate your 
> > directories
> >                                  define('ROOT', 
> > '/home.8/l/o/a/loanlnk/foo/apps');
> >         }
> >         if (!defined('APP_DIR')) {
> >                  //define('APP_DIR', 'DIRECTORY NAME OF APPLICATION');
> >                  define('APP_DIR', 'gumiz');
> >         }
> > /**
> >  * This only needs to be changed if the cake installed libs are
> > located
> >  * outside of the distributed directory structure.
> >  */
> >         if (!defined('CAKE_CORE_INCLUDE_PATH')) {
> >                  //define ('CAKE_CORE_INCLUDE_PATH', 'FULL PATH TO 
> > DIRECTORY WHERE
> > CAKE CORE IS INSTALLED. DO NOT ADD A TRAILING DIRECTORY SEPARATOR');
> >                  //You should also use the DS define to separate your 
> > directories
> >                  define('CAKE_CORE_INCLUDE_PATH', 
> > '/home.8/l/o/a/loanlnk/foo');
>
> > // htacess of the www/gumiz (webroot)
>
> > RewriteEngine On
> > RewriteBase   /gumiz
> > RewriteCond %{REQUEST_FILENAME} !-d
> > RewriteCond %{REQUEST_FILENAME} !-f
> > RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
>
> > That's about it. I did not need to tweak the .htaccess of the www
> > because I use this mainly for development. So I use to call my
> > application bywww.loanlnk.fr/gumiz.
> > I suggest you could do the same and after, maybe tweak to the
> > www/.htaccess according to your needs
>
> > hope this helps
> > On Sep 4, 9:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > It would be very nice, thank you !!
>
> > > On Sep 4, 9:38 pm, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > > well I can give you my "tree" under OVH if you are interested. OVH is
> > > > quite tricky with their "special" version of Apache.
>
> > > > On Sep 4, 9:21 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > > > Oh, and I'm under Linux with Apache 1.3.37 and PHP 5.2.3.
>
> > > > > I don't know the distrib but uname -r returns 
> > > > > "2.6.18.1-grsec-mutu-grs-
> > > > > ipv4-32".
>
> > > > > (MySQL 5.0)
>
> > > > > My CakePHP version is the last nightbuild. VERSION.txt said
> > > > > 1.2.0.5427alpha.
>
> > > > > On Sep 4, 9:03 pm, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > > > > Well if all links are wrong, it's problem of mod-rewrite and/or
> > > > > > index.php. What platform do you use ?
> > > > > > Can you paste your .htaccess and webroot/index.php in the bin or by
> > > > > > mail ?
>
> > > > > > On Sep 4, 8:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > > > > > I have this problem for all my URL's, the images cannot be found 
> > > > > > > ( url
> > > > > > > searched:http://www.server.com/home/maryphot/www/maryphoto/img/image.ext
> > > > > > > in place ofhttp://www.server.com/img/image.ext), my form's actions
> > > > > > > have the same problem.
>
> > > > > > > My CSS cannot be found anymore.
>
> > > > > > > I can solve some problems by updating my app/webroot/index.php 
> > > > > > > but I
> > > > > > > don't know how to alter it to get all the thing running ...
>
> > > > > > > Looking at the html.php helper, I think that it's its $webroot 
> > > > > > > member
> > > > > > > that is altered ...
>
> > > > > > > die($this->webroot); ===> /home/maryphot/www/maryphoto
>
> > > > > > > (The real absolute dir on my server is: "/home.10/maryphot/www/
> > > > > > > maryphoto", I don't know if it helps ... ?)
>
> > > > > > > Thank you again !
>
> > > > > > > Pijcke Fabian
>
> > > > > > > On 4 sep, 20:35, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > Do you have same problems for other links ? Check also your 
> > > > > > > > index.php
> > > > > > > > in webroot ..
> > > > > > > > All this seems a configuration problem to me.
>
> > > > > > > > On Sep 4, 8:31 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
> > > > > > > > wrote:
>
> > > > > > > > > Hi again,
>
> > > > > > > > > I changed it to PagesController to SpagesController and 
> > > > > > > > > nothing
> > > > > > > > > changed: my links are as ugly as before :(
>
> > > > > > > > > I also tried to modify my .htaccesses but the result was 
> > > > > > > > > really
> > > > > > > > > disturbing so I resetted them to the officials ones ...
>
> > > > > > > > > Thank for your help anyway !
>
> > > > > > > > > On 4 sep, 20:23, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > Pages is reserved, try with a new name and let know about 
> > > > > > > > > > the results.
>
> > > > > > > > > > On Sep 4, 8:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
> > > > > > > > > > wrote:
>
> > > > > > > > > > > Hi, thanks for your answer :)
>
> > > > > > > > > > > Yes, mod_rewrite is installed on my server ...
>
> > > > > > > > > > > I'll use $html->link instead of my beginners technic ^^
>
> > > > > > > > > > > My controller's named PagesController, I'll change for
> > > > > > > > > > > SpagesController ( Static pages )
>
> > > > > > > > > > > Thank you again, have somebody idea's for my url's issue ?
>
> > > > > > > > > > > On 4 sep, 19:58, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > > > Strange, have you got mod-rewrite set up ?
> > > > > > > > > > > > By the way instead of :
>
> > > > > > > > > > > > <a href="<?php echo 
> > > > > > > > > > > > $html->url('/pages/magasin/Mouscron'); ?
>
> > > > > > > > > > > > >">Mouscron</a><br />
>
> > > > > > > > > > > > you could use echo $html->link('Mouscron', 
> > > > > > > > > > > > '/pages/magasin/');
>
> > > > > > > > > > > > What is the name of your controller ? "Pages" is a 
> > > > > > > > > > > > "reserved" name for
> > > > > > > > > > > > static pages in cakePhp.
>
> > > > > > > > > > > > On Sep 4, 6:18 pm, "[EMAIL PROTECTED]" <[EMAIL 
> > > > > > > > > > > > PROTECTED]> wrote:
>
> > > > > > > > > > > > > Hi there,
>
> > > > > > > > > > > > > I'm new to cakePHP and trying to create a simple 
> > > > > > > > > > > > > application, but I
> > > > > > > > > > > > > have a problem with the html helper and also I think 
> > > > > > > > > > > > > the Router
> > > > > > > > > > > > > class ...
>
> > > > > > > > > > > > > So I just created a controller with no model 
> > > > > > > > > > > > > associated and 2 views
> > > > > > > > > > > > > named "index.thtml" and "magasin.thtml".
>
> > > > > > > > > > > > > These pages are accessible via 
> > > > > > > > > > > > > "http://www.server.com/pages/index"; and
> > > > > > > > > > > > > ("http://www.server.com/pages/magasin/Mouscron"; or 
> > > > > > > > > > > > > "http://www.server.com/pages/magasin/Leers-Nord";) ( 
> > > > > > > > > > > > > the controller attributes
> > > > > > > > > > > > > different variables according to the parameter ).
>
> > > > > > > > > > > > > In index.thtml, I wrote:
>
> > > > > > > > > > > > > <a href="<?php echo 
> > > > > > > > > > > > > $html->url('/pages/magasin/Mouscron'); 
> > > > > > > > > > > > > ?>">Mouscron</a><br />
>
> > > > > > > > > > > > > <a href="<?php echo 
> > > > > > > > > > > > > $html->url('/pages/magasin/Leers-Nord'); ?>">Leers-
> > > > > > > > > > > > > Nord</a>
>
> > > > > > > > > > > > > And the resultant HTML code is:
>
> > > > > > > > > > > > > <a href="/home/maryphot/www/maryphoto/pages/magasin/
> > > > > > > > > > > > > Mouscron">Mouscron</a><br />
> > > > > > > > > > > > > <a 
> > > > > > > > > > > > > href="/home/maryphot/www/maryphoto/pages/magasin/Leers-Nord">Leers-
> > > > > > > > > > > > > Nord</a>
>
> > > > > > > > > > > > > The part "/home/maryphot/www/maryphoto" is overdue, 
> > > > > > > > > > > > > and I don't know
> > > > > > > > > > > > > how to remove it, I checked 
> > > > > > > > > > > > > /cake/libs/view/helpers/html.php and I
> > > > > > > > > > > > > found that the url() function was a member of the 
> > > > > > > > > > > > > Router class, then I
> > > > > > > > > > > > > saw at it but don't know how to fix that problem ... 
> > > > > > > > > > > > > Can someone help
> > > > > > > > > > > > > me ?
>
> > > > > > > > > > > > > Sorry for my bad english ... :(


--~--~---------~--~----~------------~-------~--~----~
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