I just migrate Wordpress to Drupal and in Wordpress, users can use this url http://xxx.com/?feed=rss to get feed, but I cannot use this module to redirect "?feed=rss".

btw, could I use .htaccess to do it ? I found it seems the question mark doesn't work in .htaccess too.

Comments

HorsePunchKid’s picture

Status: Active » Closed (duplicate)

I'm going to mark this as a duplicate of #174961 Allow query strings in "from" paths.

I'm almost positive you can accomplish this with mod_rewrite in your .htaccess. Check out RewriteCond. If I wanted to redirect:

http://example.com/?feed=rss

...to something like:

http://example.com/drupal/feed/rss

I might try something like this:

RewriteCond %{QUERY_STRING} ^([^=]+)=([^&]+)
RewriteRule ^$ /drupal/%1/%2

Rewrite rules are a tricky species, though. No guarantee that or anything close to that will actually work, but I know it can be done one way or another!