Note that there are some explanatory texts on larger screens.

plurals
  1. POCakePHP odd redirect
    primarykey
    data
    text
    <p>There is a CakePHP app. We need it to work over SSL. Because of the (mysterious and apparently secret) way 1&amp;1's Apache is configured, it refuses requests made for files that do not exist properly. Because of this, we turned off pretty permalinks for CakePHP, by uncommenting </p> <pre><code>Configure::write('App.baseUrl', env('SCRIPT_NAME')); </code></pre> <p>..in <code>app/Config/core.php</code></p> <p>Since the app links to itself using pretty permalinks, we needed to redirect from pretty permalinks to non-pretty.</p> <pre><code>RewriteEngine On RewriteCond %{REQUEST_URI} ^/papers/paper$ RewriteRule (.*) (our domain name)/index.php/papers/paper [R=301,L] </code></pre> <p>However, when accessing a particular page of the app, <code>/papers/paper</code>, the server returns a redirect to <code>/index.php/kunden/homepages/21/d286159521/htdocs/hr/hr.advancedcarellc.com/index.php/papers/paper</code> for no reason I can figure out. This behavior occurs even when disabling any relevent .htaaccesses. </p> <p>However, running <code>grep -r "kunden"</code> gives </p> <pre><code>./lib/Cake/Test/Case/Network/CakeRequestTest.php: $_SERVER['DOCUMENT_ROOT'] = '/kunden/homepages/4/d181710652/htdocs/joomla'; ./lib/Cake/Test/Case/Network/CakeRequestTest.php: $_SERVER['SCRIPT_FILENAME'] = '/kunden/homepages/4/d181710652/htdocs/joomla/dbhauser/index.php'; ./test/lib/Cake/Test/Case/Network/CakeRequestTest.php: $_SERVER['DOCUMENT_ROOT'] = '/kunden/homepages/4/d181710652/htdocs/joomla'; ./test/lib/Cake/Test/Case/Network/CakeRequestTest.php: $_SERVER['SCRIPT_FILENAME'] = '/kunden/homepages/4/d181710652/htdocs/joomla/dbhauser/index.php'; ./test/test/lib/Cake/Test/Case/Network/CakeRequestTest.php: $_SERVER['DOCUMENT_ROOT'] = '/kunden/homepages/4/d181710652/htdocs/joomla'; ./test/test/lib/Cake/Test/Case/Network/CakeRequestTest.php: $_SERVER['SCRIPT_FILENAME'] = '/kunden/homepages/4/d181710652/htdocs/joomla/dbhauser/index.php'; </code></pre> <p>This seems to imply that the redirect is caused by some sort of absolute path/relative path mismatch, but I can't think of anything actually doing any redirects.</p> <p>I would also suspect some manner of hidden configuration on 1&amp;1's part. Does anyone have experience with 1&amp;1 and CakePHP?</p>
    singulars
    1. This table or related slice is empty.
    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.
    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