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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.