Note that there are some explanatory texts on larger screens.

plurals
  1. PO.htaccess for cakephp
    primarykey
    data
    text
    <p>I'm trying to get a CakePHP application to work. For this, I've set up a brand new Debian installation, updated the configuration and put everything in /var/www, which has the following content:</p> <pre><code>app cake .htaccess index.php vendors </code></pre> <p>The .htaccess file contains the following:</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; RewriteEngine on RewriteRule ^$ /webroot/ [L] RewriteRule (.*) /webroot/$1 [L] &lt;/IfModule&gt; </code></pre> <p>If I access my virtualhost (<a href="http://myhost/" rel="noreferrer">http://myhost/</a>) I see the correct page. But even the JavaScript loaded with <code>src="/js/validate.js"</code> fails (it's located within <code>/var/www/app/webroot/js/validate.js</code>):</p> <pre><code>[Wed Aug 26 15:45:12 2009] [error] [client 10.7.10.52] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Wed Aug 26 15:45:12 2009] [debug] core.c(3063): [client 10.7.10.52] r-&gt;uri = /webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/js/prototype.js [Wed Aug 26 15:45:12 2009] [debug] core.c(3069): [client 10.7.10.52] redirected from r-&gt;uri = /webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/js/prototype.js [Wed Aug 26 15:45:12 2009] [debug] core.c(3069): [client 10.7.10.52] redirected from r-&gt;uri = /webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/js/prototype.js [Wed Aug 26 15:45:12 2009] [debug] core.c(3069): [client 10.7.10.52] redirected from r-&gt;uri = /webroot/webroot/webroot/webroot/webroot/webroot/webroot/js/prototype.js [Wed Aug 26 15:45:12 2009] [debug] core.c(3069): [client 10.7.10.52] redirected from r-&gt;uri = /webroot/webroot/webroot/webroot/webroot/webroot/js/prototype.js [Wed Aug 26 15:45:12 2009] [debug] core.c(3069): [client 10.7.10.52] redirected from r-&gt;uri = /webroot/webroot/webroot/webroot/webroot/js/prototype.js [Wed Aug 26 15:45:12 2009] [debug] core.c(3069): [client 10.7.10.52] redirected from r-&gt;uri = /webroot/webroot/webroot/webroot/js/prototype.js [Wed Aug 26 15:45:12 2009] [debug] core.c(3069): [client 10.7.10.52] redirected from r-&gt;uri = /webroot/webroot/webroot/js/prototype.js [Wed Aug 26 15:45:12 2009] [debug] core.c(3069): [client 10.7.10.52] redirected from r-&gt;uri = /webroot/webroot/js/prototype.js [Wed Aug 26 15:45:12 2009] [debug] core.c(3069): [client 10.7.10.52] redirected from r-&gt;uri = /webroot/js/prototype.js [Wed Aug 26 15:45:12 2009] [debug] core.c(3069): [client 10.7.10.52] redirected from r-&gt;uri = /js/prototype.js [Wed Aug 26 15:45:12 2009] [debug] mod_deflate.c(632): [client 10.7.10.52] Zlib: Compressed 649 to 405 : URL /webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/js/prototype.js </code></pre> <p>Hence my <b>question</b>: what is the correct .htaccess required for CakePHP?</p> <p>Many, many thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload