• Hi all,

    I recently migrated to a new server that is allowing me to use mod rewrite, which is great. However I think a lot of people are still viewing my old feed and thus don’t even know my site has been updated, at

    /index.php/feed (because on my old server I couldn’t use mod rewrite)

    So I’d like to write a rewrite rule in my new server to forward anyone who goes to that feed address to go to

    /feed

    But how do you do this?? Mod rewrite seems to get confused by the period in the middle or something. I’ve tried a straightforward

    RewriteRule ^index.php/feed/?$ /feed

    and that doesn’t work!

    Any help would be greatly appreciated!
    YF

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    Try this in your .htaccess file (all on one line with a single space between the redirected relative URL and the correct absolute URL):

    Redirect permanent /index.php/feed/ https://www.yourdomain.com/feed/

    You could also try this. It may break your site, but if it doesn’t, it will be a more permanent solution that should work for all of your former permalinks:

    Redirect permanent /index.php/ https://www.yourdomain.com/

    Thread Starter yongfook

    (@yongfook)

    Brilliant. Macmanx, you are a god amongst men. I tried the second one and it works wonders – and now all my old links in google work too. Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to mod rewrite this /index.php/feed –> /feed ???’ is closed to new replies.