I'm trying to redirect http://example.com/forum/index.php to http://example.com/forum/ and it will not work. Here's the code I'm using in my .htaccess. What am I doing wrong?

Redirect forum/index.php http://example.com/forum

I've also tried without the forum/ part too.

marked as duplicate by Jenny D, Dave M, user62491, Ward, Falcon Momot Feb 4 '14 at 5:19

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • can you give the full contents of your .htaccess? Where in your path is this .htaccess file living? – Chris Montanaro Feb 3 '14 at 16:15
  • I'm on my own Apache server and the only thing that's in my .htaccess is that. The .htaccess file is located in my htdocs file. – ErraticFox Feb 3 '14 at 16:17

Try adding a / before forum:

Redirect /forum/index.php http://example.com/forum/
  • It didn't work. – ErraticFox Feb 3 '14 at 16:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.