![]() |
![]() ![]() |
![]() |
Almalutz |
![]()
Post
#1
|
Group: Members Posts: 5 Joined: 18-March 17 Member No.: 26,347 ![]() |
Hello all, hope you all are doing well. I have a website and its URL has been changed and i want to implement 301 permanent redirection on my website. The home page URL is same but inner page URL's have been changed. My Home page website URL is unchanged- http://www.emulateinfotech.com but the inner URL's have been renamed. here are some old and new URL's of my website-
Old URL- http://www.emulateinfotech.com/about-us.aspx New URL- http://www.emulateinfotech.com/about-us Old URL- http://www.emulateinfotech.com/portfolio.aspx New URL- http://www.emulateinfotech.com/portfolio Old URL- http://www.emulateinfotech.com/contact-us.aspx New URL- http://www.emulateinfotech.com/contact-us Can anyone tell me the 301 permanent redirection code from old aspx page to new php website. It would be very helpful if anyone could help. Thanks in advance. |
pandy |
![]()
Post
#2
|
🌟Computer says no🌟 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 ![]() |
Is it a Windows server?
|
Almalutz |
![]()
Post
#3
|
Group: Members Posts: 5 Joined: 18-March 17 Member No.: 26,347 ![]() |
yes it's a window's server
|
pandy |
![]()
Post
#4
|
🌟Computer says no🌟 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 ![]() |
Sorry, then I don't know. But I read somewhere that if you have the URL Rewrite Module you can do it in a .htaccess like way (what's used on Apache), even if with a different syntax.
https://docs.microsoft.com/en-us/iis/extens...deo-walkthrough |
Almalutz |
![]()
Post
#5
|
Group: Members Posts: 5 Joined: 18-March 17 Member No.: 26,347 ![]() |
I have tried from htaccess but its not working its showing 404 error and "/" error
|
pandy |
![]()
Post
#6
|
🌟Computer says no🌟 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 ![]() |
You mean you've used an .htaccess file? No, that won't work on IIS, not that I know of.
|
Christian J |
![]()
Post
#7
|
. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 9,661 Joined: 10-August 06 Member No.: 7 ![]() |
Maybe this explains how to do it on IIS?
https://docs.microsoft.com/en-us/iis/configuration/ https://docs.microsoft.com/en-us/iis/config...r/httpredirect/ Maybe the web host's control panel has a simplified way to do this as well. This post has been edited by Christian J: May 2 2019, 06:50 AM |
pandy |
![]()
Post
#8
|
🌟Computer says no🌟 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 ![]() |
Doesn't seem so. If I understand it half right the best you can do is redirect the whole site to a specific URL. But I understood very little so...
![]() Still think you need the URL Rewrite Module. But I don't know how to find out if it's installed. Well, asking the host is of course one way. |
Tom H. |
![]()
Post
#9
|
Advanced Member ![]() ![]() ![]() ![]() Group: Members Posts: 129 Joined: 24-August 06 Member No.: 14 ![]() |
It appears Almalutz achieved the desired 301 redirects on IIS:
CODE eunice:~ tom$ curl -I http://www.emulateinfotech.com/about-us.aspx HTTP/1.1 301 Moved Permanently Content-Length: 162 Content-Type: text/html; charset=UTF-8 Location: http://www.emulateinfotech.com/about-us Server: Microsoft-IIS/8.5 X-Powered-By: ASP.NET X-Powered-By-Plesk: PleskWin Date: Fri, 14 Jun 2019 20:13:32 GMT I am curious what it took. |
pandy |
![]()
Post
#10
|
🌟Computer says no🌟 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 ![]() |
So are we all.
![]() |
CharlesEF |
![]()
Post
#11
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 ![]() |
Windows IIS requires that the 'HTTP Redirect' module be installed. See this page for help, if you use Win10 then follow the steps for Win8/Win8.1.
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 27th April 2024 - 08:45 AM |