redirecting all .html files to .asp files

Discussion in 'Site & Server Administration' started by shobankr, Oct 23, 2008.

  1. #1
    I have a site with about 380 interlinked HTML files.. I have to rename all the HTML files to .asp and make sure that the existing links are alos updated.

    Some one told me that isapi plug-in can do this job easier that it it can redirect all .html files to .asp files

    Can any one help me in this? More information and links is much appreciated.
     
    shobankr, Oct 23, 2008 IP
  2. shobankr

    shobankr Peon

    Messages:
    162
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sorry to bump!! no one?
     
    shobankr, Oct 23, 2008 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    Download all the files on your comp use php editor and replace all .html to .asp
     
    Bohra, Oct 23, 2008 IP
  4. shobankr

    shobankr Peon

    Messages:
    162
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I asked about th plugin!
     
    shobankr, Oct 23, 2008 IP
  5. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #5
    I Use the software called Rapid PHP 2007
     
    Bohra, Oct 23, 2008 IP
  6. shobankr

    shobankr Peon

    Messages:
    162
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    PLease rad my question properly.. I am asking about iis plugin!
     
    shobankr, Oct 23, 2008 IP
  7. easydolla

    easydolla Peon

    Messages:
    403
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    All you have to do is replace .html to .asp, really.
     
    easydolla, Oct 23, 2008 IP
  8. JPC-NickO

    JPC-NickO Guest

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    What type of server are you hosting on? If your on a Linux/Apache server with mod_rewrite enabled you can write a script to redirect the external .html links to .asp.

    If you have shell access to that server you could also write a quick shell script to rename and switch the links on the pages themselves.

    If you are on a Windows server you will need an ISAPI extension to handle the URL rewriting and some 3rd party application to mass replace .html with .asp in the files and rename them.
     
    JPC-NickO, Oct 23, 2008 IP
  9. shobankr

    shobankr Peon

    Messages:
    162
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Its on windows!! Can u tel me how to use the ISAPIextension?
     
    shobankr, Oct 23, 2008 IP
  10. Sean@WMS

    Sean@WMS Peon

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #10
    LOL, no one seems to be actually READING your question.

    What you want is ISAPI_Rewrite by Helicon Tech. It's an IIS snap in.

    I'm not quite sure what the regex you'll need to use for the wildcard redirecting, but they have an awesome forum.
     
    Sean@WMS, Oct 23, 2008 IP
  11. shobankr

    shobankr Peon

    Messages:
    162
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thats right!!! Will check the forum!! Thanks
     
    shobankr, Oct 23, 2008 IP