I want to track how many people are clicking on links to external websites.
I understand a good way to do this is by setting up redirect files and have them go via them. Then I can track the clicks through google analytics or whatever.
I've researched various forums and found response.redirect should do the trick.
I wrote (stole) the following code which is the entire code for a file I've called redirect.asp
I then linked to redirect.asp using a standard method
[Sat Mar 04 23:56:33 2006] [error] [asp] [15456] [debug] String found where operator expected at (eval 36) line 7, near "Redirect "http://www.google.com"" <-->
[Sat Mar 04 23:56:33 2006] [error] [asp] [15456] [debug] t(Do you need to predeclare Redirect?) <-->
[Sat Mar 04 23:56:33 2006] [error] [asp] [15456] [error] error compiling redirect.asp: Can't modify concatenation (.) or string in scalar assignment at (eval 36) line
Thanks for your suggestions but it appears not to be the problem.
I had it back to the basics before and it didn't work then. I've tried just
With and without a Semicolon at the end.
and also
I've just tried those again and it still doesn't work. The error I am getting in my browser is
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request."
The details from my log are the same as above.
I've recently obtained a Virtual Dedicated Server and I'm still trying to get to grips with it all. But according to my settings in Plesk I have Apache ASP Support for this domain.
I'm thinking now it must be an error in how Apache is installed on my server. What does Apache ASP support actually mean? Is it a programming language compiler that needs to be installed on the server to run asp code?
Is there a simple html equivalent that I can use?
Apologies for my perhaps stupid questions but I'm fairly new to web related programming and servers.
It is somehow related with file/folder permission. Check your hosting control panel for similar option. You need to allow script access permission or something similar.
Some times it could be the implementation. Try this:
This code needs to be at the top of the page as the server sends out a 302 redirection.
As your server is Apache, why do you restrict yourself to the non-native ASP code for this server ?
You could try PHP or a CGI script which will write out a log file in addition to doing the redirection.
As your server is Apache, why do you restrict yourself to the non-native ASP code for this server ?
You could try PHP or a CGI script which will write out a log file in addition to doing the redirection.
The simple answer to this is I'm an idiot and I don't know what the frak I am doing.
I chased it up with my service provider and they told me I don't have asp support (even though there's a tickbox to suggest I have it).
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
You have not yet logged in, or registered properly as a member
You are a member, but no longer have posting rights.
This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.