Jump to content

Add a little peice of code in front of every link?


chmpdog

Recommended Posts

Hi,

 

I have a site that I recently added in SEO urls. Everything works great, but none of my links go to the seo.

 

So I need a script that would add in a $variable before every link, automaticly.  Since I am not too skilled in php is would be really hard or me.

 

If you are a PHP guru out there could you whip this up or me?

 

Thanks

Link to comment
Share on other sites

Why don't you try the search and replace function on your text editor.

 

The text editor I use (PSPad) has a pretty useful feature where when you are doing search and replace. You can ask it to prompt you for each replace. So I tell it to do a general replace, and just click yes/no. It gets the job done pretty quickly.

 

Don't worry, I'm sure every single programmer has once done mindlessly boring work like that. I sure have.

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.