RE: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite
> If you are using 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
Mordechai: 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 , 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 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 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
Mark you are better off developing to a subdomain on localhost then you can use relative links :D e.g In Apache set up a vhost called test.localhost (followed by the relevant VirtualHost information) then add test.localhost to your hosts file, pointing it at 127.0.0.1 Cheers James Mark Stanton wrote: 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. is invaluable in this sort of situation. * 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
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 . 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
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 eliminates the need for the . 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
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. 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
Kay Smoljak wrote: I use the 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 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
On Sun, 25 Jul 2004 23:00:59 -0500, Lee Roberts <[EMAIL PROTECTED]> wrote: > is a good tag, but in my opinion it has worn out > its usefulness. I use the 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 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
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 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 tag. These days browsers and assistive technologies understand relative links. Therefore, the use of the 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
Neerav wrote: If you use a 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
Lachlan I use links relative to the root directory everywhere for example: Home Portfolio Articles Photography Blog Contact Us etc If you use a 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 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
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 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
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
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 *
Re: [WSG] Web Accessability, SEO, Bookmarking - mod_rewrite
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
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
[WSG] Web Accessability, SEO, Bookmarking - mod_rewrite
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 had, hopefully you have too and can help me out - are: * I have given sections of my website "fake" folder names, this effects the location of the stylesheet according to the browser... So I have had to hard code the address of the stylesheet...? Anyone else had that? Thats pretty much the main issue, Its hard to code a PHP workaround, because the PHP script doesnt know about the mod-rewrite... :S is hardcoding the only answer? thanks people! You can see the mod_rewrite used on my blogs & also in the images.neester.com image system :) cheers! - CHRIS STRATFORD - http://www.neester.com http://images.neester.com