CodeIgniter Forums

Full Version: A weird url problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]eupho[/eluser]
hi!

an exemple is better than a big speach :

I can access to my controller admin by this link : http://dev.annoncesvelo.com//admin but not by this one : http://dev.annoncesvelo.com/admin

An idea, why CI needs an extra-slash?

My .htaccess

Code:
RewriteEngine on

RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

Thanks for helping a newbie Smile

El Forum

[eluser]anggie[/eluser]
Hi!

Check this...http://ellislab.com/forums/viewthread/91563/

Hope this helps.

El Forum

[eluser]eupho[/eluser]
Thank for this fast answer but even with this .htaccess the problem is the same...

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>

El Forum

[eluser]drewbee[/eluser]
Whats the value of your configuration variable $config['index_page'] in /system/application/config/config.php ??

El Forum

[eluser]eupho[/eluser]
it's blank btw