iPage .htaccess |
[eluser]k7faq[/eluser]
Does anyone know of what special tricks are needed with CI 2.0 and iPage? I have a copy of the site running on my local Ubuntu 10.04 and PHP 5.3.2-1ubuntu4.7 and iPage's Server is at PHP 5.2.17 on my localbox all the urls work just fine; i.e. http://localhost/controller/function Uploading the same files to the iPage server I must use the index.php reference; i.e. http://mydomain.com/index.php/controller/function Anyone have any ideas what is different with iPage servers in relation to 2.0? As a side note, I _do not_ have to rely on index.php references with CI 1.7 on the exact same server. Thanks Steven .htaccess: # for iPage.com hosting DirectoryIndex index.php index.html index.htm ErrorDocument 401 /index.php ErrorDocument 403 /index.php ErrorDocument 404 /index.php <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / #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} ^system.* 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} !-f RewriteCond %{REQUEST_FILENAME} !-d 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> |
Messages In This Thread |
iPage .htaccess - by El Forum - 03-04-2011, 11:08 PM
iPage .htaccess - by El Forum - 08-16-2013, 02:44 AM
iPage .htaccess - by El Forum - 08-16-2013, 12:06 PM
|