Subversion Repositories SmartDukaan

Rev

Rev 10582 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10582 lgm 1
<IfModule mod_rewrite.c>
2
    RewriteEngine On
10588 amit.gupta 3
    RewriteBase /MobileSite/
10582 lgm 4
 
5
    #Removes access to the system folder by users.
6
    #Additionally this will allow you to create a System.php controller,
7
    #previously this would not have been possible.
8
    #'system' can be replaced if you have renamed your system folder.
9
    RewriteCond %{REQUEST_URI} ^system.*
10
    RewriteRule ^(.*)$ /index.php?/$1 [L]
11
 
12
    #When your application folder isn't in the system folder
13
    #This snippet prevents user access to the application folder
14
    #Submitted by: Fabdrol
15
    #Rename 'application' to your applications folder name.
16
    RewriteCond %{REQUEST_URI} ^application.*
17
    RewriteRule ^(.*)$ /index.php?/$1 [L]
18
 
19
    #Checks to see if the user is attempting to access a valid file,
20
    #such as an image or css document, if this isn't true it sends the
21
    #request to index.php
22
    RewriteCond %{REQUEST_FILENAME} !-f
23
    RewriteCond %{REQUEST_FILENAME} !-d
24
    RewriteRule ^(.*)$ index.php?/$1 [L]
25
</IfModule>
26
 
27
<IfModule !mod_rewrite.c>
28
    # If we don't have mod_rewrite installed, all 404's
29
    # can be sent to index.php, and everything works as normal.
30
    # Submitted by: ElliotHaughin
31
 
32
    ErrorDocument 404 /index.php
33
</IfModule>