Forum Discussion

Fotios_30046's avatar
Fotios_30046
Icon for Nimbostratus rankNimbostratus
Jun 15, 2009

Redirect html to aspx

We're relauncing a new portal for a customer and due to search engine requirements, they have requested that several hundred of their .html pages be redirected to their .aspx replacements using a 301 redirect.

 

 

I have several hundred pages that I was going to load into an external data file and reference via a class, then use a couple lines of code to redirect the calls, but I'm getting the following error:

 

 

01070627:3: The string class external file (/var/class/carpetone) has an invalid format, line: 1.

 

 

I built the file using notepad and pasted it using vi and removed any newlines using:

 

 

tr -d '\n'  new file

 

 

Any thoughts on what I might be missing?
  • I uploaded a file and did not remove newlines but instead added commas to each line and it worked.