Results 1 to 4 of 4

Thread: Problems with installation (Redirect Error)

  1. #1
    New user
    Join Date
    02-18-10.
    Posts
    7

    Default Problems with installation (Redirect Error)

    I am trying to install latest contao (version 2.9.4) on all-inkl.com hoster. I uploaded the whole contao-2.9.4 folder with FTP client. And renamed it contao I then typed http://www.domain.com/contao/contao/install and it all seems to work as I can see and accept the License agreement. But once I accept the agreement all I get is this (in both Firefox 4.0 and Safari 5.0.4:

    The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    This problem can sometimes be caused by disabling or refusing to accept cookies.

    Safari can’t open the page.
    Too many redirects occurred trying to open “http://www.domain.com/contao/contao/install”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.

    I ran the contao-check.php and it's all green so it seems that everything should work but I get all the time the redirect error. I read somewhere that these problemes occur because of cookies but cookies are accepted so it can't be it and I haven't done any redirects. .htaccess file is not even on the server. Can anyone help me with problem? Is there anything I can change to make it work?

    Thanks in advance

    //Rob

  2. #2
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Problems with installation (Redirect Error)

    Try these -
    -open system/config/localconfig.php see if this line matches: $GLOBALS['TL_CONFIG']['websitePath'] = '/contao';
    -removing any .htaccess file from your site root.
    -move everything to root so you're not using the subdirectory "contao"

  3. #3
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: Problems with installation (Redirect Error)

    Hi Robo-X,

    I have some accounts on all-inkl.com, too. First of all, I would suggest running the PHP preprocessor in a CGI user context instead as an Apache module. Thus, you do not need to use the Safe Mode Hack (SMH).

    That said, do the following steps:
    • rename the file ".htaccess.default" in your Contao website root (http://www.example.com/contao/) to ".htaccess"[/*:m:2rk79onz]
    • open the ".htaccess" and add after the license notice this server directive:
      Code:
      AddHandler php5-cgi .php
      or
      Code:
      AddHandler php53-cgi .php
      if you want enable PHP 5.3[/*:m:2rk79onz]


    Additionally, if you plan to use Contao's URL rewriting feature (see http://www.contao.org/installing-contao ... endly-urls for further information) you must set the right "RewriteBase" in your ".htaccess", i.e. in your case:
    Code:
    RewriteBase /contao
    On the other side, if you want get rid of the (unneccessary) URL fragment "/contao" you have to change the domain settings in ALL-INKL KAS center: Just map the according domain name directly to the folder "/contao", i.e. the root directory ("TL_ROOT") of your Contao installation. However, for this domain name setting you have to readapt the RewriteBase accordingly ("RewriteBase /")
    Contao Community Moderator
    → Support options

  4. #4
    New user
    Join Date
    02-18-10.
    Posts
    7

    Default Re: Problems with installation (Redirect Error)

    Thanks for all the help. I added the .php handler to the .htaccess file but I still got the redirect problem. Even after I restarted the browser. I thought adding the .php handler should solve the problem but it didn't. So I just added .php at the end of the URL and it all worked. I knew it was something I overlooked. If I wasn't in a hurry yesterday I would have probably found it myself. I saw this problem on another hoster also and thought it was some setting I was missing. Sometimes redirecting a page feels like magic. Sometimes it works sometime it doesn't. :lol:

    BTW do I still need to add "AddHandler php-fastcgi .php" to .htaccess file? As described here: http://www.contao.org/configuring-the-live-server.html

    Thanks for all the help and btw I think Contao must be one of the best cms out there and believe me I tried it all from Drupal, Geeklog, Typo3, Zope and Joomla and I found Contao works best.

    //Rob

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •