简体   繁体   中英

how to fix “Error Connection Timed Out Error” of a codeigniter website on a godaddy server?

I have uploaded a basic codeigniter website on godaddy server without any database connection. In the config file base url is set to the domain name, index_page is blank & uri_protocol is set to request_uri. I also have the .htaccess file with the code but not sure what to do in it. Here what should i do to remove this error?

I have tried playing with the base url and uri_protocol and also made changes to the .htaccess file but no help either.

My .htaccess code -

Options +FollowSymLinks
RewriteEngine on

# Send request via index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

Have your /folder/app/.htaccess like this:

<IfModule mod_rewrite.c>    
    RewriteEngine on    
    RewriteBase /folder/app/    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]    
</IfModule>

then in /folder/app/application/config/config.php you need to have this config:

$config['base_url']  = '';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM