My directory structure looks as follows :
webroot
| - assets
| | - css
| | - images
| | - scripts
| - app
The current .htaccess file reads as follows
- Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /iFleetIII/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
I need to redirect all requests for stylesheets to /webroot/assets/css, images ( lets say .png|jpg|gif ) to /webroot/images and javascript to /webroot/scripts.
I'm a complete noob at this.. spent the whole day getting my head twisted. Can someone please help !?!?
Thanks !
~Rok
*edit spelling errors