Welcome Guest, Not a member yet? Register   Sign In
Mod Rewrite Not Working Properly
#6

[eluser]Pawel K[/eluser]
Thank you for all the replies, Aken the link you gave me worked like a charm after changing a few of the lines. I also appreciate the RewriteBase explaination, makes sense.

I have one more question. I would like to use the .html extension which I set up in the config file. So instead of admin/login I want admin/login.html. Can anyone offer suggestions on how to do that with my htaccess file? Thanks.

Current file:

Code:
<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>


Messages In This Thread
Mod Rewrite Not Working Properly - by El Forum - 05-09-2010, 02:54 PM
Mod Rewrite Not Working Properly - by El Forum - 05-09-2010, 05:50 PM
Mod Rewrite Not Working Properly - by El Forum - 05-09-2010, 07:10 PM
Mod Rewrite Not Working Properly - by El Forum - 05-10-2010, 12:37 AM
Mod Rewrite Not Working Properly - by El Forum - 05-10-2010, 01:38 AM
Mod Rewrite Not Working Properly - by El Forum - 05-10-2010, 07:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB