Forum Moderators: open
Now when this link changes I have to change 100 pages individually as this is all in a CMS system.
Does anyone know any what that I can have the link on all these pages point to another file with the link in so that if I change this one file all the links change.
On each of these 100 pages I have a piece of text say "Buy This Here"
That links to www.site1.com
Now if this link/affiliate code changes I dont want to have to change 100 pages with the new link..
So I was wondering if I could make the link on "Buy This Here" point to say link.txt
This way when the link/affiliate code changes I only have to change link.txt instead of all 100 pages individually.
However, I still think the IFRAME or SSI methods are tidier.
NOTE: If you use the redirect method, be aware that it can be disabled in most browsers. Other redirect methods might be more suitable (depending on whether you want to write a little cgi stuff or possibly even edit the .htaccess file - not sure about that).
Kaled.
Then place the required html link code in /linkout.txt
e.g. <A href="http://www.anotherdomain.com">click here</A>
However, unless you are using SSI already, this will increase server CPU load since the whole file has to be scanned to allow substitutions to take place.
If you experiment with IFRAMEs, I suspect you will choose that solution.
Kaled.