Re: Content negotiation in Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rodolfo,

>          1. mod_rewrite: Although I have not tested the rules suggested to
> me, this solution works. But I only change a page or two every week in my
> spare time, so if I used this approach then half my site would be out of
> commission for a long time until I got all pages switched.

 Instead of using a rule that targets *.html can't you add a rewrite rule 
for every specific page that you change? Then after you changed them all 
you can replace those rules with a catch all.

>          4. Create a redirect page, asking people to bookmark the new one
> and automatically going to the new one in 5 seconds.

 I do this for my website as well, since pages at my old website location 
show up quite high in the Google ranking ("red hat linux pax"). Funny thing 
is that for some pages I only get search results for the new location ("red 
hat linux libmhash"), although the pages are (almost) identical.

>          * Figure out how to get the requested URL from PHP somehow, so that
> I can then suggest the "correct" new URL to the visitor.

 ? Not sure what you want to do here. If the called page actually exists 
you already know it's name...

 Unless you want to combine this with what you mention below.

>          * Figure out how to get Apache to serve this page on any 404 "not
> found" error.

 ErrorDocument 404 /somepage.html
 in your server or virtual host section. Or in .htaccess if configured as 
such.

Bye,
Leonard.

--
mount -t life -o ro /dev/dna /genetic/research


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux