Welcome Guest, Not a member yet? Register   Sign In
Problem with url helper functions, SOMETIMES
#1

[eluser]CroNiX[/eluser]
Im not sure whats going on but on some pages when I use url helpers like base_url(), site_url() and anchor() they don't seem to work properly on some pages.

in config.php:
Code:
config['base_url'] = 'http://www.mysite.com/appname/';

If I do
Code:
echo anchor('controller/method');
it creates http://www.mysite.com/appname/controller/method as the href, but when I click on it it goes to http://www.mysite.com/controller/method.

It works on some pages, but not others, so Im kind of confused.

Heres the .htaccess from www.mysite.com/appname

RewriteEngine On

# Handle the index.php file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

I had to add the ? after index.php to get it working on the live server.

Any help would be appreciated.
Thanks!


Messages In This Thread
Problem with url helper functions, SOMETIMES - by El Forum - 03-16-2009, 11:55 AM
Problem with url helper functions, SOMETIMES - by El Forum - 03-16-2009, 12:15 PM
Problem with url helper functions, SOMETIMES - by El Forum - 03-16-2009, 12:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB