.htaccess - I want my pages to find their asstes (css, scripts, etc.) in the current folder instead of the root, how? -


i managed autodeplay github repositories http://github.mydomain.com/repositoryname.

now following: of projects have stylesheets, javascripts etc. folders in root, href="/css/styles.css" , src="/js/scripts.js". want these redirect/-write href="/repositoryname/css/styles.css" , src="/repositoryname/js/scripts.js".

i have no little experience htaccess hope me out!

thanks, iason

why don't use relative path rather absolute pat.this run project in directory .

eg:- ./js/myscript.js etc .


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -