cPanel 301 Redirect Not Working or Causing Redirect Loop

You may have tried to create similar redirects:

Redirect 301 /test.xml http://example.com/test/index.xml

Redirect 301 /feed/ http://example.com/feed/feed-new/

Redirect 301 /feed http://example.com/feed/index.xml

The above is what cPanel would generate if you use the Redirect option. Here are the entries that will actually work:

RedirectMatch 301 ^/test.xml$ http://example.com/test/index.xml

RedirectMatch 301 ^/feed/$ http://example.com/feed/feed-new/

RedirectMatch 301 ^/feed$ http://example.com/feed/test/index.xml

Enjoy!

 

 

An article by -


Always willing to learn new concepts and skills not only in the area of Internet and computers. Working as a Linux System Administrator.


0 comments… add one

Leave a Comment