How to successfully Rewrite a URL with .htaccess

Posted by Ian Storm Taylor on Stack Overflow See other posts from Stack Overflow or by Ian Storm Taylor
Published on 2010-03-28T21:20:44Z Indexed on 2010/03/28 21:23 UTC
Read the original article Hit count: 176

Hello.

I am trying to rewrite mysite.com/broadcasts to mysite.com/feed so that it will show up in the location bar as "broadcasts" but actually go to /feed.

Here is what I have in the .htaccess file:

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^broadcasts(/)?$ /feed/ 
</IfModule>

But this isn't working... I get a 404 error.

Wondering if I'm doing something stupidly wrong.

Thanks!

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about mod-rewrite