• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
codeigniter in subdirectory

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

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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