SubscribeRewriteEngine On
RedirectMatch 301 ^/index.php?s=rss&rss=1 /wp-rss2.php
RewriteRule ^/index.php?id=(.*)$ /old/index.php?=$1 [L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
Options FollowSymlinks
RewriteEngine On
RedirectMatch 301 ^/index.php?s=rss&rss=1 /wp-rss2.php
RewriteRule ^/index.php?id=(.*)$ /old/index.php?=$1 [L]RewriteEngine On
RewriteBase /
# "/index.php?s=rss&rss=1" redirects to "/wp-rss2.php"
# the trailing ? on /wp-rss2.php means to delete the query
# string, so that "?s=rss&rss=1" will be dropped
RewriteCond %{QUERY_STRING} ^s=rss&rss=1$
RewriteRule ^/index\.php /wp-rss2.php? [R,L]
# because [L] was used above, we only get this far if that did not match
# so redirect all other hits to /index.php to /old/index.php
# the query args will be left intact, so that
# "/index.php?(anything)" will translate to "/old/index.php?(anything)"
# this is more robust than trying to match specific values of (anything)
RewriteRule ^/index\.php /old/index.php [R,L]
RewriteEngine On
RewriteBase /
# "/index.php?s=rss&rss=1" redirects to "/wp-rss2.php"
# the trailing ? on /wp-rss2.php means to delete the query
# string, so that "?s=rss&rss=1" will be dropped
RewriteCond %{QUERY_STRING} ^s=rss&rss=1$
RewriteRule ^/index\.php /wp-rss2.php? [R,L]
# "/index.php?id=(anything)" redirects to "/old/index.php?id=(anything)"
RewriteCond %{QUERY_STRING} ^id=(.+)$
RewriteRule ^/index\.php /old/index.php [R,L]
<?xml version="1.0"?>
<redirect>
<newLocation>http://mydomain.com/newfeed.rss</newLocation>
</redirect>
You are not logged in, either login or create an account to post comments
RewriteRule ^/index.php?s=rss&rss=1 /wp-rss2.php [QSA,L]
RewriteRule ^/index.php?id=(.*)$ /old/index.php?=$1 [R]
although I'm not sure about your flags.
posted by nicwolff at 5:26 PM on November 8, 2005