Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-26 Thread Mark Stanton
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 
http://www.gruden.com
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-26 Thread Mordechai Peller
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 file in a directory it'll check the parent 
directory.
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-26 Thread Mark Stanton
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  replace on every URL in every document
site wide to change this path. If you are using base from day one
you only need to change the path within one tag.

James: Yes - I know you can do this and we usually do,
http://projectName.gruden.com for staging and
http://project.gruden.int for internal and
http://projectName.machineName.gruden.int for actual developers
desktops.

I guess the key thing in both of these cases is that base gives you
a flexibility that you would otherwise not have. Its not the answer to
every problem and its not something you MUST DO EVERYTIME - its just
there for our convinience. And sometimes its pretty handy.

-- 
Mark Stanton 
Gruden Pty Ltd 
http://www.gruden.com
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



RE: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-26 Thread Patrick Lauke
 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 missing something?

Patrick

Patrick H. Lauke
Webmaster / University of Salford
http://www.salford.ac.uk
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
*



Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-25 Thread Mordechai Peller
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 parameters from mod_rewrite, grabs the 
information either hard coded within itself, from local files, or from a 
database. In many cases it would do all three.

As a general rule, I like my CSS files to be real, same to with images 
unless it's better to throw them into a db, and all, or at least most of 
my HTML files to be handled by a single master file.
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-25 Thread Lachlan Hardy
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?

Cheers,
Lachlan
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-25 Thread Neerav
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   
  lia href=/photography/Photography/a/li
  lia href=/blog/Blog/a/li
  lia href=/contactus.phpContact Us/a/li
/ul
/div
etc
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

--
Neerav Bhatt
http://www.bhatt.id.au
Web Development  IT consultancy
Mobile: +61 (0)403 8000 27
http://www.bhatt.id.au/blog/ - Ramblings Thoughts
http://www.bookcrossing.com/mybookshelf/neerav
Lachlan Hardy wrote:
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?

Cheers,
Lachlan
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-25 Thread Lachlan Hardy
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 reason folks don't use them, but 
I can see that this is getting off-topic so I'll shut up now

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



RE: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-25 Thread Lee Roberts
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 ago, oh that was in
1990, there was no such thing as relative links.  So,
Mosaic didn't know where to go if you clicked on a link
that wasn't absolute or the author didn't include the
base tag.

These days browsers and assistive technologies understand
relative links.  Therefore, the use of the base tag has
pretty much disappeared.

I hope this helps.

Lee Roberts
http://www.roserockdesign.com
http://www.applepiecart.com

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-25 Thread Kay Smoljak
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
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 tag comes into play.

-- 
Kay Smoljak
http://kay.smoljak.com
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-25 Thread Lachlan Hardy
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 tag comes into play.
That's precisely what I use it for
I've never used leading slashes. Maybe it is a web server difference 
though, seeing as I use IIS - which gives me virtual directories - hence 
the leading slash won't work on my local machine

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
* 



RE: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-23 Thread Lee Roberts



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



Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-23 Thread Chris Stratford




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 now.
since the folders are all "fake" but appear real to the browser.
Unless I hardcode the path to the stylesheet...

ahhh one thing i could do...
set up a mod_rewrite to repoint the stylesheet :)
HA!
see how great it is :)
although hardcoding the URL is fine with me, although I have heard
thats not a good idea :S

Lee Roberts wrote:

  
  
  
  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
  






Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite

2004-07-23 Thread Anders Nawroth
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 http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
*