Need help: 1and1, codeigniter and 302 redirect error

1 replies
Hi

I have a website built on codeigniter. Yesterday I checked google webmaster account and found crawl errors, all 302 redirect errors. Looks like google cant access all pages in codeigniter directory. I'm not sure what the problem is. Its 1and1 Linux hosting, here are .htaccess files, first in the root directory second in codeignitor.

1.
AddType x-mapp-php5 .php .html .htm
Options +FollowSymlinks

RewriteEngine On
RewriteCond %{HTTP_HOST} !^MYDOMAINHERE$ [NC]
RewriteRule ^(.*)$ http :// MYDOMAINHERE/$1 [R,L]

2.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /debt_collect

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^CI_Files.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

#When your application folder isn't in the system folder
#This snippet prevents user access to the application folder
#Submitted by: Fabdrol
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.+) index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin

ErrorDocument 404 /index.php
</IfModule>

Please could you tell me what the problem it is?

Thank you!
#1and1 #302 #codeigniter #error #redirect
  • Profile picture of the author ExpertsGuide
    may be you should provide some more info like provide us the URL which is flagged in g webmaster.
    {{ DiscussionBoard.errors[2622078].message }}

Trending Topics