Redirecting a URL using IIS Server/ Give user message Site is moved to different location using IIS Server / HTTP Redirect
HTTP Redirect using IIS Server:-
Install IIS Server 7 and above.
Turn on IIS Server feature from control panel.
Create a site testing and give path to a folder.
Open host page in C:\Windows\System32\Drivers\etc\hosts
add following lines
127.0.0.1 testing.com
127.0.0.1 www.testing.com
Add basic default page index.html using iis server visit your site with testing.com.
Go to Turn on feature in Control panel and go IIS Server ->WWW-> and check http redirection.
Go to Http redirect inside your website testing.com
Select redirect all request to exact destination. Select permanent redirect and click apply.
Install IIS Server 7 and above.
Turn on IIS Server feature from control panel.
Create a site testing and give path to a folder.
Open host page in C:\Windows\System32\Drivers\etc\hosts
add following lines
127.0.0.1 testing.com
127.0.0.1 www.testing.com
Add basic default page index.html using iis server visit your site with testing.com.
Go to Turn on feature in Control panel and go IIS Server ->WWW-> and check http redirection.
Go to Http redirect inside your website testing.com
Select redirect all request to exact destination. Select permanent redirect and click apply.
Comments
Post a Comment