• Resolved maniac9978

    (@maniac9978)


    Can I redirect these URLs to my custom RSS feed? I know I can do it using “RedirectMatch” but I’d like the mask the URLs which is why I’d prefer to use a rewrite rule but everything I’ve tried doesn’t work. Would anyone be able to help me?

    I’d like to rewrite all requests to /rss/, /feed/, or /comments/ to /feed/customRSS if at all possible.

    Thank you very much for any help you can offer!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try adding this to your .htaccess file:

    Redirect 301 /rss https://www.yoursite.com/feed/customRSS
    Redirect 301 /feed https://www.yoursite.com/feed/customRSS
    Redirect 301 /comments https://www.yoursite.com/feed/customRSS
    Thread Starter maniac9978

    (@maniac9978)

    Thanks for the answer!

    Any idea how I can do this using a rewrite rule? I’d prefer using that so that I can take advantage of the URL masking.

    Thread Starter maniac9978

    (@maniac9978)

    I figured it out. I realized I had to add it to the .htaccess with the other WordPress rewrite rules instead of the Apache config file or alternatively move all the WordPress rewrite rules to the Apache config and then add this rule there as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Apache rewrite for /rss/ and /feed/?’ is closed to new replies.