I want to rewrite assets directory from mysite.com/demo/assets/ to mysite.com/assets using htaccess.
i tried lots of combination but none of them works, i think it has something to do with my current htaccess parameters
Original code
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
AddDefaultCharset utf-8
I did the trick via bellow code, but js functions which are adding css parameters doesn't work any more.
RedirectMatch 301 ^/demo/assets/(.*)$ /assets/$1
I have created actual /demo/assets folder and added htaccess files with bellow parameter, it also does the trick for css but js is still not working
RewriteEngine on
RewriteBase /demo/assets/
RewriteRule ^(.*)$ /assets/$1 [L,NC]
anybody help
Ok finally after full night research i found the source of issue. js is glitching because of tinymce library, when i upload it manually in demo/assets/plugins all seems to work fine!
now i am trying to find out why tinymce is glitching and keep it in shared /assets folder.
hope i can receive advice's.
strangely issue seems to be in demo/assets/plugins/tinymce/langs dir which contains only readme.md