Manipulate HTML code on the fly

Discussion in 'Apache' started by pizzakoerier, Jan 24, 2012.

  1. #1
    Hi,I am using a certain system that creates a huge amount of static HTML files. It is running on my local machine and I use it intensively for demo-ing. Now I would like to host the same information on a webserver without having to maintain multiple versions of the same information.Because all of the HTML is static, I have a problem that none of the links will work when I upload it to my website. For example, it links to http://mycomputername/websites/website1.phpOn my webserver, this link should be: http://sub.domainname.com/websites/website1.phpI want the Apache server to detect whenever 'mycomputername' is in the HTML code and change it to 'sub.domainname.com' on the fly.Is there any way to do this? I don't think that mod_rewrite will do anything except for 'listening' to URL's and changing them, so I don't think that is the solution.Kind regards,Pizzakoerier
     
    pizzakoerier, Jan 24, 2012 IP
  2. pizzakoerier

    pizzakoerier Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anyone has any ideas?
     
    pizzakoerier, Feb 9, 2012 IP