Currently my website images, css, js path is like this. It is very lengthy. I want to hide some part of URL using .htaccess look into this example.
http://www.mysite.com/themes/global/css/style.css
http://www.mysite.com/themes/global/js/script.js
http://www.mysite.com/themes/global/images/logo.png
....
This is what I want without changing the current directory structure using .htaccess
http://www.mysite.com/css/style.css
http://www.mysite.com/js/script.js
http://www.mysite.com/images/logo.png
....
How can i do this? It is good to do or bad please comment. Thank you!!
You can try something like this, first check if you’re accessing a css, js, or image, then rewrite the short URI to the full URI: