![]() |
htaccess rewrite assets directory - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: htaccess rewrite assets directory (/showthread.php?tid=72810) |
htaccess rewrite assets directory - BackOffice - 02-13-2019 Hello, i have multiple ci instances in different folders, each folder has only 3 files .htaccess index.php and /config/config.php. only problem i face is assets which is called through base_url('assets/.....'), modifying code is not an option since program developers pushes frequent updates and my changes will be overwritten, what i need to do is make rewrite rule in htaccess which will modify mysite.com/folder/assets to mysite.com/assets. i tried lots of combination but none of them works, i think it has something to do with my current htaccess parameters Original code Code: RewriteEngine on I have added bellow code, but js functions which are adding css parameters doesn't work any more. Code: RedirectMatch 301 ^/demo/assets/(.*)$ /assets/$1 RE: htaccess rewrite assets directory - InsiteFX - 02-14-2019 Stupid .htaccess Tricks THE Ultimate Htaccess |