Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Can not install cause of a looping redirect
 
janoschii
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2008-01-18
 

I dont know if it is a special problem of the new 0.7.148 release.
For me it seems like a problem with the .htaccess file.

I get the install-page after a long while. But without images and stylesheet-files.
.htaccess seems to loop the redirect. I saw it as i checked the redirect with a link to an image from the
install-page.

if a go to

http://www.mysite.com/magento/index.php/skin/install/default/default/images/logo.gif

i get after a while this as url and a errortext about the looping redirect.

http://www.mysite.com/magento/index.php/skin/install/default/default/images/logo.gif/install/install/install/install/install/install/install/install/install/install/install/install/install/install/install/install/install/install/install/install/

But how to change it.
My knowledge in .htaccess is very poor. So maybe someone can help me.

i tried this as htaccess.

AddType x-mapp-php5 .php

############################################
## uncomment these lines for CGI mode

#Action php5-cgi /cgi-bin/php-cgi 
#AddHandler php5-cgi .php

############################################
## default index file

DirectoryIndex index.php

<IfModule mod_php5.c>

############################################
## disable magic quotes for php request vars

    
php_flag magic_quotes_gpc off

############################################
## enable php short tags for templates

    
php_flag short_open_tag on

</IfModule>

<
IfModule mod_ssl.c>

############################################
## make HTTPS env vars available for CGI mode

    
SSLOptions StdEnvVars

</IfModule>

<
IfModule mod_rewrite.c>

############################################
## enable rewrites

    
Options +FollowSymLinks 
    RewriteEngine on

############################################
## you can put here your magento root folder path relative to web root

    
RewriteBase /magento/

############################################
## always send 404 on missing files in these folders

    
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

############################################
## never rewrite for existing files, directories and links

    
RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
%{REQUEST_FILENAME} !-d
    RewriteCond 
%{REQUEST_FILENAME} !-l

############################################
## rewrite everything else to index.php

    
RewriteRule .* index.php

</IfModule>

Order allow,deny
Allow from all

And I also tried this:

AddType x-mapp-php5 .php

DirectoryIndex index
.php

RewriteEngine on

RewriteBase 
/magento/

RewriteCond %{REQUEST_URI} !^/media/
RewriteCond %{REQUEST_URI} !^/skin/
RewriteCond %{REQUEST_URI} !^/js/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteCond 
%{REQUEST_FILENAME} !-l

RewriteRule 
.* index.php

And a lot of other .htaccess-file versions.
What I know for sure is that I have to use the first line “AddType x-mapp-php5 .php” to run scripts in PHP 5.

I uploaded the magento.zip and extracted it in a folder on the root.  /magento/
After a lot of tests to install http://www.mysite.com/magento/index.php/install/
I redirected the domain in the domainconfiguration to the magento folder.
So i can call http://www.mysite.com/index.php/install/
I also changed the RewriteBase /magento/ to RewriteBase /
But it didnt worked. And it also looped the redirect.

PHP Version 5.2.4
System:  Linux
Server API:  CGI
Configuration File (php.ini) Path:  /usr/local/lib/php5
SERVER_SOFTWARE Apache/1.3.33 (Unix)
ORIG_SCRIPT_FILENAME /kunden/homepages/20/d345564/htdocs/mysite/magento/index.php

Thanks a lot

Janoschii

 
Magento Community Magento Community
Magento Community
Magento Community
 
janoschii
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2008-01-18
 

I solved this problem.
I found an Thead with a tip of Mark_Kimsal. Thanks
Read the Thread

Just search for ‘SCRIPT_NAME’ in these files and change to ‘ORIG_SCRIPT_NAME’

Mage/Core/Model/Store.php
Mage/Core/Model/Config.php
Mage/Core/Model/Url.php
Mage/Core/functions.php

This is my .htaccess file:

AddType x-mapp-php5 .php



############################################
## uncomment these lines for CGI mode

#Action php5-cgi /cgi-bin/php-cgi 
#AddHandler php5-cgi .php

############################################
## default index file

DirectoryIndex index.php

<IfModule mod_php5.c>

############################################
## disable magic quotes for php request vars

    
php_flag magic_quotes_gpc off

############################################
## enable php short tags for templates

    
php_flag short_open_tag on

</IfModule>

<
IfModule mod_ssl.c>

############################################
## make HTTPS env vars available for CGI mode

    
SSLOptions StdEnvVars
 
</IfModule>

#<IfModule mod_rewrite.c>

############################################
## enable rewrites

    
Options +FollowSymLinks 
    RewriteEngine on

############################################
## you can put here your magento root folder path relative to web root

    
RewriteBase /

############################################
## always send 404 on missing files in these folders

    
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

############################################
## never rewrite for existing files, directories and links

    
RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
%{REQUEST_FILENAME} !-d
    RewriteCond 
%{REQUEST_FILENAME} !-l

############################################
## rewrite everything else to index.php

    
RewriteRule .* index.php 

#</IfModule>

Order allow,deny
Allow from all
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top