• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A weird url problem

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

#2
[eluser]anggie[/eluser]
Hi!

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

Hope this helps.

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

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.