Hello,
*(I apologize in advance for my bad English.)*

my CakePHP incorrectly lists paths to files (css files, images, 
javascripts...).
CakePHP always before the path adds */app/webroot/index.php/*

For example:
CakePHP makes link: */app/webroot/index.php/css/style.css
*but* *correctly should be link:*/css/style.css*


My file structure:
   
   - hosting/
      - www/
         - mydomain.com/
            - www/
               - .htaccess
               - app/
               - .htaccess
                  - webroot/
                     - .htacces
                     - index.php
                     

In */hosting/www/mydomain.com* is located symlink that redirects always to *
/hosting/www/mydomain.com/www*.

*I don't know if it has an effect file .htaccess and therefore I write:*


/hosting/www/mydomain.com/www/.htaccess

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteBase /
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>



/hosting/www/mydomain.com/www/app/.htaccess

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteBase    /
   RewriteRule    ^$    webroot/    [L]
   RewriteRule    (.*) webroot/$1    [L]
</IfModule>




/hosting/www/mydomain.com/www/app/webroot/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase    /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>


*Please advice.*

-- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to