I am needing to learn how to perform a 301 redirect on Windows 2003 that’s for ASP but the site is actually html. I have no idea why this server was chosen for hosting the site.
As far as I know to perform a 301 re-direct on an html site I would need ISAPI_Rewrite -http://www.isapirewrite.com/docs/ - I have tried the lite version but it fails to redirect the pages.
I have read that I could use a script command in the header of the page with the redirect but that doesn’t make a difference.
I have also tried going into the properties of the file via IIS and configure the file to redirect but it makes no difference, the file can still be accessed normally (isn’t this option for ASP pages only?)
Here is what I am trying to re-direct.
www.domain.com/index.html > www.domain.com/
www.domain.com/directory/index.html > www.domain.com/directory/
Anyone have any ideas on how this done? Long live apache and .htaccess!
As far as I know to perform a 301 re-direct on an html site I would need ISAPI_Rewrite -http://www.isapirewrite.com/docs/ - I have tried the lite version but it fails to redirect the pages.
I have read that I could use a script command in the header of the page with the redirect but that doesn’t make a difference.
I have also tried going into the properties of the file via IIS and configure the file to redirect but it makes no difference, the file can still be accessed normally (isn’t this option for ASP pages only?)
Here is what I am trying to re-direct.
www.domain.com/index.html > www.domain.com/
www.domain.com/directory/index.html > www.domain.com/directory/
Anyone have any ideas on how this done? Long live apache and .htaccess!