Htaccess: Redirect all, except one
am 05.07.2007 00:58:20 von Philipp Lenssen
Hi! I'm looking to permanent-redirect all of http://blog.outer-court.com
to http://blogoscoped.com -- with the temporary exception of the file
http://blog.outer-court.com/rss.xml as I want to give RSS clients a
chance to see my "this blog moved" post even if they don't correctly
interpret the HTTP 301 header.
My current htaccess file for blog.outer-court.com:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://blogoscoped.com/$1 [R=301,L]
How do I adjust this to exclude just /rss.xml, which I've stored on my
old server? Many thanks for any help!!
Re: Htaccess: Redirect all, except one
am 05.07.2007 06:40:13 von petersprc
Try: RewriteCond %{REQUEST_URI} !^/rss.xml$
On Jul 4, 6:58 pm, Philipp Lenssen wrote:
> Hi! I'm looking to permanent-redirect all ofhttp://blog.outer-court.com
> tohttp://blogoscoped.com-- with the temporary exception of the filehttp://blog.outer-court.com/rss.xmlas I want to give RSS clients a
> chance to see my "this blog moved" post even if they don't correctly
> interpret the HTTP 301 header.
>
> My current htaccess file for blog.outer-court.com:
>
> Options +FollowSymLinks
> RewriteEngine on
> RewriteRule (.*)http://blogoscoped.com/$1[R=301,L]
>
> How do I adjust this to exclude just /rss.xml, which I've stored on my
> old server? Many thanks for any help!!