Welcome! Log In Create A New Profile

Advanced

redirect old .asp files to new .html files using htaccess

Posted by rschonhoff 
redirect old .asp files to new .html files using htaccess
August 26, 2014 02:34PM
I have moved my old .asp site from windows server to .html files on a linux server using nginx I dont have access to the conf file so i need to redirect the old .asp pages to the new .html.

The .asp files exist on the new server but in htaccess i have this entry :

AddType application/x-httpd-php .asp Redirect index.asp http://dvmark.com/index.html

it doesn't work. When youtype in dvmark.com/index.asp all you get is the html text display of the index.asp page. I have tried several different ways to redirect and no luck. If I delete the .asp pages I get sent to my 404 page which is OK but I would really want the redirect to work so the user doesn't have to find the page they are looking for in the sitemap.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 217
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready