Re: [vox-tech] moving an url gracefully
On Wed, Dec 14, 2005 at 12:11:20PM -0800, Micah J. Cowan wrote: > destination replaces the old one (as a 301 does--though I have no idea > how smart indexers are about that sort of thing). Very smart from what I've heard. -- Ted Deppner http://www.deppner.us/ ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] moving an url gracefully
On Wed, Dec 14, 2005 at 01:52:20PM -0500, Aaron A. King wrote: > Forgive my ignorance, but is this something that must be done by > reconfiguring > the server? Or can one put the 301 redirect into an HTML page sitting at the > old site? You can't. There is a non-standard, but de facto standard way to accomplish something very similar in HTML, by using http://new-url/";>, but you wouldn't want to use that unless you really had no control over the server /whatsoever/, even through local configs (.htaccess). There are pretty good reasons not to use that method most of the time; and it also fails to programatically notify indexers or user agents that the new destination replaces the old one (as a 301 does--though I have no idea how smart indexers are about that sort of thing). Apache (and maybe other servers) supports the concept of an ".asis" document (as-is), which gets served exactly as is, and includes the appropreate HTTP headers _in_the_document_. However, IIRC, Apache doesn't normally have these set up by default, and so if you're able to get that working, you'd probably be able to get the mod_rewrite stuff working as well (which is a generally better approach). -- HTH, Micah J. Cowan [EMAIL PROTECTED] ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Fwd: Re: [vox-tech] moving an url gracefully
Andy posted from a non-sub'd addr. Fwd'ing to vox-tech on his behalf. (Sorry for breaking threads!) Date: Wed, 14 Dec 2005 09:46:36 -0800 From: Andy Wergedal <[EMAIL PROTECTED]> Subject: Re: [vox-tech] moving an url gracefully To: lugod's technical discussion forum Reply-To: [EMAIL PROTECTED] Pete, Here is the link to the mod_rewrite page specifically for URL's. -- Andy http://httpd.apache.org/docs/1.3/misc/rewriteguide.html - End forwarded message - -- -bill! [EMAIL PROTECTED] http://www.newbreedsoftware.com/ ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] moving an url gracefully
On Wed, Dec 14, 2005 at 01:52:20PM -0500, Aaron A. King wrote: > Forgive my ignorance, but is this something that must be done by > reconfiguring the server? Remember that Apache can be set up (and usually is) to allow per-directory reconfiguration via .htaccess files. So, instead of having to get root permission, or do a sudo, and edit /etc/apache/httpd.conf and creating a "" section for your redirect, rule rewrite, alias, authentication, etc., you simply drop the config options you want into an ".htaccess" file in the dir. (This is MOST often done[*] for setting up .htaccess/.htpasswd authentication to password-protect a particular directory heirarchy on the website.) [*] Or at least explained zillions of times on countless "How to make HMTL website on teh intarweb" howto webpages. :^) -- -bill! [EMAIL PROTECTED] http://www.newbreedsoftware.com/ ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] moving an url gracefully
On Wed, Dec 14, 2005 at 08:45:57AM -0800, Philip Neustrom wrote: > You'll want to use your webserver's rewrite engine to do this. For > apache, it's mod_rewrite. It's pretty straightforward to do, > especially for something like this. We actually use mod_rewrite on the LUGOD website to 'wrap' all of the mailing list archive HTML pages (generated by MHonArc, I guess) in the nice navigation PHP that's found pretty much all over the LUGOD.org site. (Helps direct new visitors to the rest of LUGOD, when they find our site by Google searching a question and finding the answer in our list archives. >:^) ) -bill! ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] moving an url gracefully
Forgive my ignorance, but is this something that must be done by reconfiguring the server? Or can one put the 301 redirect into an HTML page sitting at the old site? Aaron On Wednesday 14 December 2005 01:30 pm, Ted Deppner wrote: | On Wed, Dec 14, 2005 at 10:20:35AM -0800, Ryan wrote: | > In this case, I'd suggest using 301 (moved permantly) redirects. | | Yup, that's the right thing to do, based on what Pete's given us. -- Aaron A. King, Ph.D. Ecology & Evolutionary Biology University of Michigan GPG Public Key: 0x2B00840F pgpxp4k6DwdnN.pgp Description: PGP signature ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] moving an url gracefully
On Wed, Dec 14, 2005 at 10:20:35AM -0800, Ryan wrote: > In this case, I'd suggest using 301 (moved permantly) redirects. Yup, that's the right thing to do, based on what Pete's given us. -- Ted Deppner http://www.deppner.us/ ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] moving an url gracefully
On Wednesday 14 December 2005 08:54 am, Philip Neustrom philipn-at-gmail.com |lugod| wrote: > As for search engine ranking: it shouldn't really matter. If you're > paranoid you can use a proper http redirect by sending the headers > "Status: 302" and "Location: new location" when the old locations are > requested. This can be done using mod_alias in apache. Something > like > "Redirect /foo http://foo2.bar.com/"; > > With mod_rewrite it looks like there are two seperate but identical > files. With mod_alias the http client can tell you're redirecting. > Either way it shouldn't matter too much. In this case, I'd suggest using 301 (moved permantly) redirects. > --Philip Neustrom > > On 12/14/05, Philip Neustrom <[EMAIL PROTECTED]> wrote: > > You'll want to use your webserver's rewrite engine to do this. For > > apache, it's mod_rewrite. It's pretty straightforward to do, > > especially for something like this. > > > > I believe it'd be something like: > > > > RewriteEngine On > > RewriteRule ^/foo/(.*)$ /where/your/files/are/on/disk/$1 [L] > > > > so if bar is in /var/www/foo/bar > > > > RewriteRule ^/foo/(.*)$ /var/www/foo/$1 [L] > > > > will reroute request for /foo/x to /var/www/foo/x > > > > --Philip Neustrom > > > > On 12/14/05, Peter Jay Salzman <[EMAIL PROTECTED]> wrote: > > > i have a directory on my webserver that contains some fairly popular > > > pages. > > > > > > i'd like to change the url from > > > > > >http://www.dirac.org/foo/bar > > > > > > to > > > > > >http://www.dirac.org/bar > > > > > > is there a graceful way to do this and have the info updated by the > > > search engines? i hear that google puts higher rankings on urls that > > > are around for a long time. anyway of avoiding that reduction in rank? > > > > > > pete > > > ___ > > > vox-tech mailing list > > > vox-tech@lists.lugod.org > > > http://lists.lugod.org/mailman/listinfo/vox-tech > > ___ > vox-tech mailing list > vox-tech@lists.lugod.org > http://lists.lugod.org/mailman/listinfo/vox-tech -- Ryan Castellucci - http://ryanc.org/ GPG Key: http://ryanc.org/files/publickey.asc ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] moving an url gracefully
As for search engine ranking: it shouldn't really matter. If you're paranoid you can use a proper http redirect by sending the headers "Status: 302" and "Location: new location" when the old locations are requested. This can be done using mod_alias in apache. Something like "Redirect /foo http://foo2.bar.com/"; With mod_rewrite it looks like there are two seperate but identical files. With mod_alias the http client can tell you're redirecting. Either way it shouldn't matter too much. --Philip Neustrom On 12/14/05, Philip Neustrom <[EMAIL PROTECTED]> wrote: > You'll want to use your webserver's rewrite engine to do this. For > apache, it's mod_rewrite. It's pretty straightforward to do, > especially for something like this. > > I believe it'd be something like: > > RewriteEngine On > RewriteRule ^/foo/(.*)$ /where/your/files/are/on/disk/$1 [L] > > so if bar is in /var/www/foo/bar > > RewriteRule ^/foo/(.*)$ /var/www/foo/$1 [L] > > will reroute request for /foo/x to /var/www/foo/x > > --Philip Neustrom > > On 12/14/05, Peter Jay Salzman <[EMAIL PROTECTED]> wrote: > > i have a directory on my webserver that contains some fairly popular pages. > > > > i'd like to change the url from > > > >http://www.dirac.org/foo/bar > > > > to > > > >http://www.dirac.org/bar > > > > is there a graceful way to do this and have the info updated by the search > > engines? i hear that google puts higher rankings on urls that are around > > for a long time. anyway of avoiding that reduction in rank? > > > > pete > > ___ > > vox-tech mailing list > > vox-tech@lists.lugod.org > > http://lists.lugod.org/mailman/listinfo/vox-tech > > > ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] moving an url gracefully
You'll want to use your webserver's rewrite engine to do this. For apache, it's mod_rewrite. It's pretty straightforward to do, especially for something like this. I believe it'd be something like: RewriteEngine On RewriteRule ^/foo/(.*)$ /where/your/files/are/on/disk/$1 [L] so if bar is in /var/www/foo/bar RewriteRule ^/foo/(.*)$ /var/www/foo/$1 [L] will reroute request for /foo/x to /var/www/foo/x --Philip Neustrom On 12/14/05, Peter Jay Salzman <[EMAIL PROTECTED]> wrote: > i have a directory on my webserver that contains some fairly popular pages. > > i'd like to change the url from > >http://www.dirac.org/foo/bar > > to > >http://www.dirac.org/bar > > is there a graceful way to do this and have the info updated by the search > engines? i hear that google puts higher rankings on urls that are around > for a long time. anyway of avoiding that reduction in rank? > > pete > ___ > vox-tech mailing list > vox-tech@lists.lugod.org > http://lists.lugod.org/mailman/listinfo/vox-tech > ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] moving an url gracefully
Peter Jay Salzman wrote: > i have a directory on my webserver that contains some fairly popular pages. > > i'd like to change the url from > >http://www.dirac.org/foo/bar > > to > >http://www.dirac.org/bar > > is there a graceful way to do this and have the info updated by the search > engines? i hear that google puts higher rankings on urls that are around > for a long time. anyway of avoiding that reduction in rank? use robots.txt to forbid indexing the old url? --Ken Bloom -- I usually have a GPG digital signature included as an attachment. See http://www.gnupg.org/ for info about these digital signatures. signature.asc Description: OpenPGP digital signature ___ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech