I have a single domain. The main application serves from a single subdomain app.domain.com
. I need a simple permenant redirect to redirect users that go to app.domain.com
to be redirected to newapp.domain.com
. This is so that the users can update the bookmarks. This is temporary and I would like it to be at the apache level (directory level) and do not want to do this via htaccess files; e.g. I want to make this change in httpd.conf.
You can try the apache2 module "mod_alias" with this you can make a permanent Redirect:
Enable mod_rewrite, if it isn't. Then, in the config for the old domain: