Codeigniter and Godaddy Hosting - El Forum - 07-15-2013
[eluser]ibnclaudius[/eluser]
I'm hosting my application in /attoagencia, and the domain attoagencia.com redirect to this subfolder. I'm also using a .htaccess to remove index.php from url and change it in config.php.
Code: $config['index_page'] = '';
Code: # Options
Options -Multiviews
Options +FollowSymLinks
#Enable mod rewrite
RewriteEngine On
#the location of the root of your site
#if writing for subdirectories, you would enter /subdirectory
RewriteBase /attoagencia/
#Removes access to CodeIgniter 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} ^system.*
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} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css
#folders, and the robots.txt file
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php?/$1 [L]
Quote:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache Server at attoagencia.com Port 80
Codeigniter and Godaddy Hosting - El Forum - 07-15-2013
[eluser]JoostV[/eluser]
I think GoDaddy is fast CGI. It needs a question mark after index.php, if I remember correctly. Try:
Code: RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Regular PHP installation rewrite
RewriteRule ^(.*)$ index.php?/$1 [L]
Codeigniter and Godaddy Hosting - El Forum - 07-16-2013
[eluser]ibnclaudius[/eluser]
I didn't understand what I have to change, could you please repeat your answers in another way?
Codeigniter and Godaddy Hosting - El Forum - 07-16-2013
[eluser]JoostV[/eluser]
You need to change your .htaccess file. If I'm correct, this is all that needs to be in there:
Code: RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
Codeigniter and Godaddy Hosting - El Forum - 07-16-2013
[eluser]ibnclaudius[/eluser]
Shouldnt have a rewrite base? Cause my site its not in root directory, my domain redirect to subfolder /attoagencia...
Codeigniter and Godaddy Hosting - El Forum - 07-16-2013
[eluser]Ckirk[/eluser]
I'm not sure what Joost is saying. you already have the "?" at the end of your index.php references
Here's a working example, which is currently running on a client's godaddy account. Not much different from yours other than the
Code: Options -Multiviews
Options +FollowSymLinks
My client's htaccess:
Code: <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /pathToSubDirectory/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
Codeigniter and Godaddy Hosting - El Forum - 07-16-2013
[eluser]ibnclaudius[/eluser]
The error persists:
Quote:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache Server at attoagencia.com Port 80
My files:
/attoagencia/.htaccess
Code: <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /attoagencia/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
/attoagencia/application/config/config.php
Code: $config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
Codeigniter and Godaddy Hosting - El Forum - 07-16-2013
[eluser]Ckirk[/eluser]
Looks ok to me.
can you review the server log for more info?
Codeigniter and Godaddy Hosting - El Forum - 07-16-2013
[eluser]ibnclaudius[/eluser]
Quote:[Tue Jul 16 12:57:57 2013] [11180053] [dir:error] [client 179.236.126.157:55977] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/53/11180053/html
[Tue Jul 16 12:57:57 2013] [11180053] [dir:error] [client 179.236.126.157:55977] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/53/11180053/html
[Tue Jul 16 12:57:57 2013] [11180053] [dir:error] [client 179.236.126.157:55977] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/53/11180053/html
[Tue Jul 16 12:57:57 2013] [11180053] [dir:error] [client 179.236.126.157:55977] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/53/11180053/html
[Tue Jul 16 12:57:57 2013] [11180053] [dir:error] [client 179.236.126.157:55977] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/53/11180053/html
[Tue Jul 16 12:57:57 2013] [11180053] [dir:error] [client 179.236.126.157:55977] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/53/11180053/html
[Tue Jul 16 12:57:57 2013] [11180053] [dir:error] [client 179.236.126.157:55977] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/53/11180053/html
[Tue Jul 16 12:57:57 2013] [11180053] [dir:error] [client 179.236.126.157:55977] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/53/11180053/html
[Tue Jul 16 12:57:57 2013] [11180053] [dir:error] [client 179.236.126.157:55977] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/53/11180053/html
[Tue Jul 16 12:57:57 2013] [11180053] [dir:error] [client 179.236.126.157:55977] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/53/11180053/html
[Tue Jul 16 12:57:57 2013] [11180053] [dir:error] [client 179.236.126.157:55977] Inside mod_dir, setting document_root to PARENT_DOCUMENT_ROOT : /var/chroot/home/content/53/11180053/html
[Tue Jul 16 12:57:57 2013] [11180053] [core:error] [client 179.236.126.157:55977] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
Codeigniter and Godaddy Hosting - El Forum - 07-18-2013
[eluser]ibnclaudius[/eluser]
Only the index method is working sssss
|