Welcome Guest, Not a member yet? Register   Sign In
website not displaying
#2

(09-05-2015, 01:47 AM)rooye Wrote: hello everyone

my website that was displaying with all the pages opening well has suddenly started acting otherwise.In google chrome it end with the message:

"This web page has a redirect loop. ERR_TOO_MANY_REDIRECTS" and in firefox:
"Firefox has detected that the server redirects the request for this address in a way that will not succeed. The cause of this problem can be disabling or refusing cookies."

It does open in opera either. Now i have deleted cookies over and over, used ccleaner to clear every trash to no avail.I have used different PCs to no avail so i have concluded that the problem is related to server side.I have remove and put back the .htaccess file but nothing changes. The .htaccess file has this code:

# masking the index.php page so that it is not seen in the url
Options -Indexes
# activating URL rewrite.
RewriteEngine on
#
# fixing the url rewrite rules. here we are using white list.
#
# all url that do not correspond to this mask will be rewritten.
RewriteCond $1 !^(index\.php|assets/|robots\.txt)
# all other url will be redrected to the index.php page.
RewriteRule ^(.*)$ index.php/$1 [L]

At some moment in my searchi came across this other code and used

DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]  

but still it did not work. At some moment the home page opened but the css file seemnot to have been loaded as there was no make.Moreso,no clicked link worked.

Please help am in deep shit. Thanks for your usual efforts to help

Hi,

Put the following code at your .htaccess:


Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

And remove your index_page value at your config:


Code:
$config['index_page'] = '';

The second step is not specified at documentation:

http://www.codeigniter.com/userguide3/general/urls.html
Greetings.
Reply


Messages In This Thread
website not displaying - by rooye - 09-05-2015, 01:47 AM
RE: website not displaying - by rtorralba - 09-05-2015, 02:50 AM
RE: website not displaying - by rooye - 09-05-2015, 01:05 PM
RE: website not displaying - by rtorralba - 09-06-2015, 06:24 AM
RE: website not displaying - by RobertSF - 09-06-2015, 10:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB