I think that only for stolen sites comment is a little off. For
example I'll often develop something on my local machine on a URL like
http://localhost/project-name and then deploy it on its own URL.
base is invaluable in this sort of situation.
--
Mark Stanton
Gruden Pty Ltd
Kay Smoljak wrote:
www.example.com/foo/bar/ rather than www.example.com?foo=bar. In this
situation, the relative links no longer make sense
But using a leading slash eliminated the need for the base.
Also, mod_rewrite works fine with relative addressing. When Apache
doesn't find the .htaccess
Mordechai: base affects what the leading slash actually points to.
You could have a little app in http://localhost/myApp and code all
your pages up to use img src=/myApp/images/myImage.gif, but when
you move the app into another directory (eg. http://localhost/yourApp)
you then need to do a find
If you are using base from day one
you only need to change the path within one tag.
But you still need to do it for every page in your site that uses it...
So we are comparing the merit of making find/replaces site wide for
all links vs. find/replace site wide for a specific tag.
Or am I
Anders Nawroth wrote:
Chris Stratford wrote:
just have the header point to: styles/sheet.css
Use /styles/sheet.css.
In most cases that's probably best. However, another option is to use
mod_rewrite to also adjust the CSS location. It's even possible to have
only one main file which takes
Lee Roberts wrote:
That is what I use. Of course the directories and filenames are
different, but you get the idea.
I often just use a base tag.
http://www.w3schools.com/tags/tag_base.asp
Although, I very rarely see other people use it. Since it has come up,
why don't folks use this tag?
Lachlan
I use links relative to the root directory everywhere for example:
link rel=stylesheet type=text/css media=print href=/print.css/
link rel=shortcut icon href=/favicon.ico /
div id=mainnav
ul
lia href=/Home/a/li
lia href=/portfolio.phpPortfolio/a/li
lia href=/article/Articles/a/li
Neerav wrote:
If you use a base tag than you cant run a local mirror of sites for
testing. Eg: I run Apache/PHP/MySQL etc on my pc to make sure everything
is running fine before I upload to the clients FTP server
Sure, you can. I just generate the base tag
I was thinking there must be some other
Base is a good tag, but in my opinion it has worn out
its usefulness.
The only reason one might find it good now is if one has
their site stolen. Rookies that steal your web site won't
know what base is and would therefore end up linking
into your site.
When we started HTML development years
On Sun, 25 Jul 2004 23:00:59 -0500, Lee Roberts
[EMAIL PROTECTED] wrote:
Base is a good tag, but in my opinion it has worn out
its usefulness.
I use the base tag for my Fusebox/ColdFusion sites, which use SES
(search engine safe) style URLS - ie, the urls are in the format
Kay Smoljak wrote:
I use the base tag for my Fusebox/ColdFusion sites, which use SES
(search engine safe) style URLS - ie, the urls are in the format
www.example.com/foo/bar/ rather than www.example.com?foo=bar. In this
situation, the relative links no longer make sense, which is where the
base
Hey WSG,
I have recently been playing with mod_rewrite, and I LOVE IT!
It is great, and I have read that it helps a lot with SEO, Bookmarking
and even Web Accessability.
(Email clients often strip query data etc...)
What are your tips and pointers for using mod_rewrite.
Some problems I have
Chris,
Put your CSS file in
a real directory. Then do the following:
../styles/site-styles.css
That is what I
use. Of course the directories and filenames are different, but you get
the idea.
Lee
Roberts
http://www.roserockdesign.com
http://www.applepiecart.com
Hmmm.
Sorry forgot to mention one crucial detail...
I import a HEADER.PHP file.
for every PHP page loaded.
Every php file is actually in the base directory with the CSS file in a
folder called STYLES.
So originally my method worked fine!
just have the header point to: "styles/sheet.css"
but
Chris Stratford wrote:
So originally my method worked fine!
just have the header point to: styles/sheet.css
Use /styles/sheet.css.
It points to the same location from everywhere in your site.
/AndersN
*
The discussion list for
15 matches
Mail list logo