Saturday, 14 September 2013

htaccess 301 redirect blog/username to user/username

htaccess 301 redirect blog/username to user/username

I know this must have been answered on here before so I apologize in
advance, but despite my numerous searches - I couldn't find a suitable
answer.
I have an url, for instance: www.domain.com/blog/username which I'd like
to redirect to www.domain.com/users/username
I've tried: Rewriterule ^blog/(.+)$ ./users/$1
But it's not quite right and results in a 404.
I also want www.domain.com/blog to redirect to www.domain.com/users

No comments:

Post a Comment