Rewrite the path directories of public - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Rewrite the path directories of public (/showthread.php?tid=59256) |
Rewrite the path directories of public - El Forum - 09-11-2013 [eluser]Unknown[/eluser] Hey guys, I´m trying rewrite the path of the directory public files, like css, js, etc... no sucess ! My directory it´s like that _ application __ views ___ themes ____ default _____ public ______ css ______ js The current path /application/views/themes/default/public/css/file.css That what I need /public/css/file.css Or /themes/dafault/public/css/file.css Code: RewriteEngine on Rewrite the path directories of public - El Forum - 09-11-2013 [eluser]CroNiX[/eluser] Assets like images, js, css, can't be located within /application or /system. Code: /system Rewrite the path directories of public - El Forum - 09-12-2013 [eluser]Unknown[/eluser] [quote author="CroNiX" date="1378932565"]Assets like images, js, css, can't be located within /application or /system. Code: /system [/quote] CroNix, thanks man. I wonder if it is possible to remove the theme directory via htaccess? Remembering, the directory of the theme is changeable. Something like that Before Code: /public/{theme}/css/somefile.css After Code: /public/css/somefile.css I did it like that. But dir theme have to change Code: RewriteRule ^public/css/(.*)$ public/default/css/$1 [L] |