Welcome Guest, Not a member yet? Register   Sign In
Problems with php5 on .httaccess
#2

[eluser]theprodigy[/eluser]
why not just try:
Code:
addtype application/x-httpd-php5 .html .htm
AddType application/x-httpd-php5 .php
AddHandler application/x-httpd-php5 .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]

    #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>
I've had to use something similar to this on my shared hosting account before. I just put the wiki version of the htaccess below the addtype's and addhandler's


Messages In This Thread
Problems with php5 on .httaccess - by El Forum - 02-19-2010, 09:44 AM
Problems with php5 on .httaccess - by El Forum - 02-19-2010, 11:44 PM
Problems with php5 on .httaccess - by El Forum - 02-20-2010, 10:34 AM
Problems with php5 on .httaccess - by El Forum - 02-20-2010, 10:45 AM
Problems with php5 on .httaccess - by El Forum - 02-20-2010, 11:24 AM
Problems with php5 on .httaccess - by El Forum - 02-20-2010, 06:51 PM
Problems with php5 on .httaccess - by El Forum - 02-20-2010, 07:39 PM
Problems with php5 on .httaccess - by El Forum - 02-20-2010, 08:18 PM
Problems with php5 on .httaccess - by El Forum - 02-21-2010, 07:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB