I have a web application where the requested URL is used in a REST-like fashion. However, if no URL is entered (just the domain) I re-direct to http://www.example.com/home
and then my home controller is loaded.
What HTTP status code should I use for this re-direct? This process takes place in my index.php
script using a simple header('Location: home')
call.
Clarification: this may not be permanent, but will remain present in this version of the application. So for example, if this application were to be redeveloped in the future then the new developer may chose to once again serve requests from the root. I would imagine this then narrows my choices to:
303 See Other
307 Moved Temporarily