Welcome Guest, Not a member yet? Register   Sign In
[Solved] mod_rewrite, index.php or how I will go crazy ...
#1

[eluser]laegnur[/eluser]
Hi

I have a development server with apache2, php and mysql under ubuntu jaunty. In the ServerRoot I have a folder called "artabro" and into it, the codeigniter installation. In "artabro" I have the next .htaccess too:

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    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>

In the codeigniter's config.php, I have changed the base_url to "http://localhost/artabro/", the index_page to "" and the uri_protocol to "REQUEST_URI"

If I access to http://localhost/artabro or http://localhost/artabro/index.php/welcome/ it shows the welcome class without problem. But if I tried to access to http://localhost/welcome it don't works... The apache log said that: "Files does not exist: /var/www/artabro/welcome"

I don't know what more do to fix this... Someone can help me?


Messages In This Thread
[Solved] mod_rewrite, index.php or how I will go crazy ... - by El Forum - 09-30-2009, 06:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB