Welcome Guest, Not a member yet? Register   Sign In
URL problem?
#1

[eluser]Unknown[/eluser]
Hello, I can't figure this out. When my page loads for the first time, it works fine.
If I click on a link, it can't find the 'js' folder which resides at the same level as application and system folders.
This is in my header:

<scritp type="text/javascript" src="&lt;?php echo base_url()?&gt;js/jquery.prettyPhoto.js"></scritp>
(I mispelled 'script' because it is removed automatically by the editor)

By using Live HTTP Headers, I found that it is looking for:

http://localhost/my_site/main/js/jquery.prettyPhoto.js


But, 'main' is my default controller. So instead, it should be looking for:

http://localhost/my_site/js/jquery.prettyPhoto.js

because this is where the jquery file is actually located.

My .htaccess file, is:

RewriteEngine on
RewriteCond $1 !^(index\.php|js|flash|images|scripts|css|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]


And in the config file I have:

$config['base_url'] = 'http://localhost/my_site/';

Any suggestions?
Thank you in advance.




Theme © iAndrew 2016 - Forum software by © MyBB