Jump to content

Rewriting the output


rasael

Recommended Posts

Hello everybody!

 

I am looking for an easy way to replace the text in the apache response.

 

What I need to do is:

 

my pages contains lots of link such as "www.test.com/something" and I want apache to rewrite them to "localhost/something"

 

Thank you,

Rasael

Link to comment
https://forums.phpfreaks.com/topic/52970-rewriting-the-output/
Share on other sites

Thank you for answering.

 

I am working on the conversion of a website (already online) where all the links are pointing to the real online url (example www.test.com/contact.htm).

 

Now I am working on the website locally and I don't want to replace all the links (got way too many pages) to have it working on my computer but I would like Apache to replace the links.

This will allow me to browse the website locally and if I upload the same pages on Internet I don't have to replace the links.

 

I've been trying to figure out this by adding output filters but I didn't understand much of it..

 

Thank you,

Rasael

Link to comment
https://forums.phpfreaks.com/topic/52970-rewriting-the-output/#findComment-261829
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.