I want to redirect a sites homepage to a subsites homepage. I can create a page from redirect page layout BUT, i want no waiting for a couple of seconds, i want immediate redirect. How can i achieve this?
|
It could be achieved with HTTP Redirect in IIS using IIS URL Rewrite module. This module allows to create various rule actions including redirect and request abort. For your scenario i recommend this option because this should redirect the request faster as the redirection happens as soon as the HTTP request received by IIS. ConfigurationLet's describe how to configure Rule that redirect a sites homepage to a subsites homepage in URL Rewrite. For example to redirect request from:
to:
the following Rule is used
,where Pattern: Redirect URL: |
|||
|
|
|
Perhaps you can change the Welcome page to subsite homepage. To do this Go to Site Settings > Look and Feel -> Welcome Page |
|||||||
|
|
You can use a standard HTML redirect with a wait period of 0:
Changing the value of See: Redirect default.aspx or change default landing to page in _layouts folder? |
|||||
|
Only one way to go then. You'll have to create an EventReciever which will trigger on WebProvisioned. The code will run every time a new subsite is created. You can find quiet a lot of information regarding this on Google. Update
|
|||||||||||||
|
|
|
|||
|
|

