yoitsdaedalus and he as a question.
i keep a directory called with jquery in it. okay?
so let's say i wanted to reference jquery.min.js in an html file but have it point to /webroot/jquery/jQuery-min.1.3.2.js (or whatever)
this way instead of linking to a path that requires that extra re-write when uploading or having to replace files when i get an update to jquery, i could easily update jquery across the sites on my development machine.
following? please advise.
thanks!
file aliases with apache?
Moderator: General Moderators
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: file aliases with apache?
I removed the link to your you-tube video. Unfortunately, we have minors here, so keep the content focused and appropriate. Thanks.
As for your question, perhaps you could create a mod_rewrite rule to which all your paths will point to, and the rule uses the latest version.
I generally don't like this approach as the codebase at the time was designed for a specific version of jquery. Updating the jquery library across your libraries would undoubtedly break some functionality down the road.
As for your question, perhaps you could create a mod_rewrite rule to which all your paths will point to, and the rule uses the latest version.
Code: Select all
RewriteRule ^public/jquery/jquery-latest.js$ public/jquery/jquery-1.3.2.min.js- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Re: file aliases with apache?
yum. i dont have a lot of experience with apache but i recently moved to ubuntu. ill look up the docs to mod_rewrite. im going to have to use it for clean URIs anyway.
what you said about updating jquery breaking functionality is true, but if it is a site that i plan on maintaining minimally or not at all i could still just include it a more 'normal' way.
thanks!
p.s. but you watched it and it was good, righht?
what you said about updating jquery breaking functionality is true, but if it is a site that i plan on maintaining minimally or not at all i could still just include it a more 'normal' way.
p.s. but you watched it and it was good, righht?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: file aliases with apache?
I watched the first 15 or so seconds (I was already familiar with the video), although I already forgot which it wasdaedalus__ wrote:p.s. but you watched it and it was good, righht?