Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Web Server Configuration _ 301 permanent redirection help

Posted by: Almalutz Apr 30 2019, 07:20 AM

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- but the inner URL's have been renamed. here are some old and new URL's of my website-

Old URL-
New URL-

Old URL-
New URL-

Old URL-
New URL-

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.

Posted by: pandy Apr 30 2019, 09:11 AM

Is it a Windows server?

Posted by: Almalutz May 1 2019, 01:32 AM

yes it's a window's server

Posted by: pandy May 1 2019, 12:12 PM

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.

Posted by: Almalutz May 2 2019, 12:20 AM

I have tried from htaccess but its not working its showing 404 error and "/" error

Posted by: pandy May 2 2019, 02:10 AM

You mean you've used an .htaccess file? No, that won't work on IIS, not that I know of.

Posted by: Christian J May 2 2019, 04:26 AM

Maybe this explains how to do it on IIS?

Maybe the web host's control panel has a simplified way to do this as well.

Posted by: pandy May 2 2019, 07:37 PM

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... wacko.gif

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.

Posted by: Tom H. Jun 14 2019, 03:17 PM

It appears Almalutz achieved the desired 301 redirects on IIS:


eunice:~ tom$ curl -I
HTTP/1.1 301 Moved Permanently
Content-Length: 162
Content-Type: text/html; charset=UTF-8
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.

Posted by: pandy Jun 14 2019, 06:03 PM

So are we all. smile.gif

Posted by: CharlesEF Jun 15 2019, 12:58 AM

Windows IIS requires that the 'HTTP Redirect' module be installed. See this for help, if you use Win10 then follow the steps for Win8/Win8.1.

Powered by Invision Power Board (
© Invision Power Services (