0

Possible Duplicate:
How to redirect non-www to www URL’s using htaccess?

My htaccess file is doing nothing although I am adding folloeing code in it.(I think it is not enable)

My current website address is like that www.abc.com/mvc/view/index.php

And the new address is www.abc.com/index.php

My hosting provider is godaddy.com. and there is also PHP.ini file in the same directory I have placed htaccess file in the root directory seems like html/.httaccess.The complete htaccess file is like

Redirect /mvc/view/index.php http://abc.com

But its not working.I am confused about .htacces file placement and also the rewrite code line. Can you please help me out?

Community
  • 1
  • 1
Aana Saeed
  • 299
  • 1
  • 4
  • 14

1 Answers1

0

The syntax for Redirect looks correct. Please note that you need to have a FileInfo permission:

Description: Sends an external redirect asking the client to fetch a different URL
Syntax: Redirect [status] URL-path URL
Context: server config, virtual host, directory, .htaccess
Override: FileInfo

You should ask your hosting provider whether you're allowed to use this directive.

Álvaro González
  • 142,137
  • 41
  • 261
  • 360