CodeIgniter Forums
codeigniter in subdirectory - 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: codeigniter in subdirectory (/showthread.php?tid=9846)



codeigniter in subdirectory - El Forum - 07-10-2008

[eluser]dexter21[/eluser]
Hi, i have ci in www.mysite.com/codeigniter

in /codeigniter/public i have all css and js and in /codeigniter/public the images of the site.

when i type www.mysite.com it load right the ci but all the images and css dont load. and if i type www.mysite.com/public/image.gif it also place the index.php before url and images dont load. RewriteCond dont load.

i have follogin .htaccess
Code:
RewriteRule ^/(index.php)?$ /codeigniter/index.php [L]


RewriteCond $1 !(rewrite\.inc|phpinfo\.php|public|imagenes|phpMyAdmin)

RewriteRule ^/(.*)$ /codeigniter/index.php?$1 [L]


any help plz ?



Many thanks


codeigniter in subdirectory - El Forum - 07-10-2008

[eluser]flojon[/eluser]
Your message was a bit unclear but I think you meant css and js was in /codeigniter/public and images in /public/images ? In that case you have misspelled images (imagenes) in your RewriteCond.. I don't know why javascript wouldn't work in public though...

Regards,
Jonas


codeigniter in subdirectory - El Forum - 07-10-2008

[eluser]dexter21[/eluser]
Many thanks for ur response

this is folder
Code:
/phpMyAdmin
/codeigniter
--/public
  --/css
--/imagenes
--/system
  --/application
  --.....
index.php

Code:
RewriteCond $1 !(rewrite\.inc|phpinfo\.php|public|imagenes|phpMyAdmin)

are there something wrong in RewriteCond ? do u know how to fix it plz?

Many thanks