Webmastersite.net
Register Log In

Mod_rewrite
Need changing url to a more 'hardcoded'-url style

Comments on Mod_rewrite

_michael_
Beginner

Usergroup: Customer
Joined: Jul 29, 2005
Location: La Zubia, Spain

Total Topics: 1
Total Comments: 3
Posted Sep 19, 2005 - 7:52 AM:

Hi... and first of all. Thanks for a great piece of software. smiling face

I'm building a site and are starting to find reciprocal link-partners. But almost everyone will not reciprocal - simply because the link I give back to them isn't a 'hardcoded' url - which it should be for The Almighty Google and SEO-guys.

Basically I need {TRACKLINKURL} from displaylinks.tpl changed to {LINKURL} from details.tpl - but still be able to keep a track of how many hits a unique link gets. (hope this make sense... smiling face )

details.tpl this code:
This line: <IF {LINKURL}><a href="{TRACKLINKURL}" {EXTERNALLINKS}>{LINKTITLE}</a>

changed to
This line: <IF {LINKURL}><a href="{LINKURL}" {EXTERNALLINKS}>{LINKTITLE}</a>


And still be able to track hits. I'm guessing that it can be done by the .htaccess-file - but unfortunately my skills with mod_rewriting isn't that good

But how can I do this?

Best regards,
Michael

(please excuse my bad english. :o))
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 19, 2005 - 11:21 PM:

You can only track hits if you use the php url, you need to switch hits tracking off to use direct urls. You can use either the direct url or track hits, not both, though you can always write the direct url in the template as non-clickable.
_michael_
Beginner

Usergroup: Customer
Joined: Jul 29, 2005
Location: La Zubia, Spain

Total Topics: 1
Total Comments: 3
Posted Sep 20, 2005 - 12:58 AM:

Hi again...

I definately need both.

Reciprocal linking is with direct urls - but they need to be traced somehow. People that are interested in making reciprocal links need direct url - if it's dynamic urls they hardly wont bother to make the link because the searchengines are looking for direct url.
And if it's dynamic url they won't get a better pagerank. So I guess this feature has to be incorporated in wsnlinks.

Would it be possible to do by javascript?
Something like
<a onClick="javascript:doCount('{TRACKLINKURL}')" href="{LINKURL}" {EXTERNALLINKS}>


and a small function that writes to mysql?


Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 21, 2005 - 9:28 PM:

You can call the link.php url with a javascript function I suppose, yes.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.