CodeIgniter Forums
A weird url problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: A weird url problem (/showthread.php?tid=11788)



A weird url problem - El Forum - 09-23-2008

[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


A weird url problem - El Forum - 09-23-2008

[eluser]anggie[/eluser]
Hi!

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

Hope this helps.


A weird url problem - El Forum - 09-23-2008

[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>



A weird url problem - El Forum - 09-23-2008

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


A weird url problem - El Forum - 09-23-2008

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