Skip to main content
extra explanation
Source Link
paulmorriss
  • 15.4k
  • 1
  • 39
  • 59
RewriteCond %{REQUEST_URI}  ^/$
RewriteCond %{QUERY_STRING} ^feed=podcast$
RewriteRule ^(.*)$ /feed/podcast [R=301,L]

This works because everything after the ? is the query string, and this rule takes effect when there is a question mark with feed=podcast after it.

RewriteCond %{REQUEST_URI}  ^/$
RewriteCond %{QUERY_STRING} ^feed=podcast$
RewriteRule ^(.*)$ /feed/podcast [R=301,L]
RewriteCond %{REQUEST_URI}  ^/$
RewriteCond %{QUERY_STRING} ^feed=podcast$
RewriteRule ^(.*)$ /feed/podcast [R=301,L]

This works because everything after the ? is the query string, and this rule takes effect when there is a question mark with feed=podcast after it.

Source Link
milo5b
  • 1.1k
  • 7
  • 12

RewriteCond %{REQUEST_URI}  ^/$
RewriteCond %{QUERY_STRING} ^feed=podcast$
RewriteRule ^(.*)$ /feed/podcast [R=301,L]