Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I moved my website to a new CMS and some of my URLs look different now, so I want to delete a part of incoming URLs so that links to my page still work properly.

The old URL looks like:

www.my-site.de/MY-FORUM/my-forum/category/postingtitle

I want to get rid of the MY-FORUM, so it looks like:

www.my-site.de/my-forum/category/postingtitle

After reading through different posts I tried the following:

RewriteRule ^MY-FORUM/(.*) /$1 [R=301,L]

Which gives me back an error message stating: Infinite loop detected in JError (I´m using joomla)

What is causing this?

share|improve this question

migrated from serverfault.com Nov 6 '11 at 23:46

This question came from our site for professional system and network administrators.

1 Answer 1

I guess you are defining it in the <VirtualHost>, so the pattern must have a leading slash:

RewriteRule ^/MY-FORUM/(.*) /$1 [R=301,L]
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.