Welcome Guest, Not a member yet? Register   Sign In
Some classes load twice!
#24

[eluser]InsiteFX[/eluser]
Code:
# Deny OR Allow Folder Indexes.
# Since we disable access to PHP files you
# can leave this on without worries.
# OR better yet, create a .htaccess file in
# the dir you want to allow browsing and
# set it to +Indexes
Options -Indexes

Options +FollowSymLinks

# Set the default file for indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /megapublik/

    # You can also uncomment this if you know the IP:
    # Deny from 192.168.1.1

    # If the file is NOT the index.php file
    RewriteCond %{REQUEST_FILENAME} !index.php
    # Hide all PHP files so none can be accessed by HTTP
    RewriteRule (.*)\.php$ index.php/$1 #<<<------------------ Should'nt this be ?/$1

    #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} ^megapublik.*
    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 $1 !^(images|javascript|css)
    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>

InsiteFX


Messages In This Thread
Some classes load twice! - by El Forum - 12-06-2010, 02:39 PM
Some classes load twice! - by El Forum - 12-06-2010, 04:48 PM
Some classes load twice! - by El Forum - 12-07-2010, 06:36 AM
Some classes load twice! - by El Forum - 12-07-2010, 11:35 AM
Some classes load twice! - by El Forum - 12-07-2010, 03:25 PM
Some classes load twice! - by El Forum - 12-07-2010, 05:23 PM
Some classes load twice! - by El Forum - 12-08-2010, 06:09 AM
Some classes load twice! - by El Forum - 12-08-2010, 11:29 AM
Some classes load twice! - by El Forum - 12-08-2010, 11:46 AM
Some classes load twice! - by El Forum - 12-08-2010, 01:31 PM
Some classes load twice! - by El Forum - 12-09-2010, 03:01 AM
Some classes load twice! - by El Forum - 12-12-2010, 10:02 AM
Some classes load twice! - by El Forum - 12-19-2010, 10:45 AM
Some classes load twice! - by El Forum - 12-19-2010, 06:08 PM
Some classes load twice! - by El Forum - 12-20-2010, 12:53 PM
Some classes load twice! - by El Forum - 12-20-2010, 04:05 PM
Some classes load twice! - by El Forum - 12-20-2010, 09:14 PM
Some classes load twice! - by El Forum - 12-23-2010, 12:13 PM
Some classes load twice! - by El Forum - 12-25-2010, 01:23 PM
Some classes load twice! - by El Forum - 01-04-2011, 02:58 PM
Some classes load twice! - by El Forum - 01-05-2011, 04:53 AM
Some classes load twice! - by El Forum - 01-05-2011, 05:20 AM
Some classes load twice! - by El Forum - 05-26-2011, 11:09 PM
Some classes load twice! - by El Forum - 05-27-2011, 12:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB