I have a Jquery slideshow generator that writes/reads tags using this
src=images/image1.jpg
rather than src=/images/image1.jpg
NOTE: the /. In the htaccess rewrite, it requires the src to have the backslash /
before the folder named images
or else, the rewrite causes a 404 error when fetching images in that folder causing the server to respond with the error page.
When i check the firebug console i see SyntaxError: expected expression, got '<'
. Caused when the javascript that was requesting the GET for the image gets the error response page as its input instead of the image it expected to load.
One solution is to ensure src=/images
. That /
has to be there. If i change to that in the html file, the Javascript slideshow generator fails. It quickly becomes a catch22. I have convinced myself i HAVE TO SOLVE IT in htaccess? If so, how? OR Is there any other solution?
Asked
Active
Viewed 141 times
0

Dudus
- 25
- 8
http:/cdn.server2en.com/scripts/4.0/jquery-1.8.3.min.js
via http. BUT i have redirected http requests to my server root(which doesn't have the script),So rather than a script, the server was returning a webpage which like all valid webpages begins with a
'<'
. Which I simply bypassed the redirection, downloaded it, created the necessary folder/file structure at the server root, now the script exists at root. When redirection happens it now gets the file at http://192.168.8.1/scripts/4.0/jquery-1.8.3.min.js – Dudus Sep 24 '17 at 11:05