I am a web developer. Its kind of like being a robot. Or so i imagine.
<--websta*-->
Hi Udi, sorry for the slow reply, haven't checked the forum in a few days, and missed the email alerting me you responded.
Ok so, to create hidden pages that are still indexed by search engines you do realise that these pages will not be hidden exactly as they will have to be available by ther url, e.g.
http://www.mywebsite.com - gets me the normal homepage
http://www.mywebsite.com/special_home_page.html - gets me the special home page
So the special page is never actually hidden, and anyone could just come along and access it.
We can of course limit who see's what pages based on where they've come from, but your pages are going to have to be available to the search engines to index them - and when they are listed in the results - they will be listed with the full urls.
Have you thought about if/how you plan to restrict access to your special hidden pages when people shouldnt be accessing them?
To make the pages completely hidden, that is you'll get different pages through the same url based on where you've come from, really we need to be doing it using PHP or similar - you'll need to know if your web hosting supports PHP.
We can reasonably simple do what your asking without using PHP, but there are better ( and more technical ways ) of doing it, and this is purely just an example of how you can do it really simply.
I'll try be as descriptive and non technical as possible, we'll be using JavaScript to do the magic, this can be inserted into your HTML pages. For this example we'll assume the following pages:
index.html - your main home page
index_special.html - a special home page
privacy.html - your privacy policy page
I'll just paste the code of these page in here and expliain them as i go
1. Firstly we have some code we'll need on all our pages, this is the script which enables us to track our usesr entry point - create a file and name it cookie_redirects.js, in the same directory as your index.html. In this file put the following content.
function trackEntryPage(){
createCookie('entryPage', document.location.pathname);
}
function checkEntryPageRedirect(){
var entryPage = readCookie('entryPage');
if(entryPage != null){
document.location = entryPage;
}
}
function entryPageLink(linkElement){
var entryPage = readCookie('entryPage');
if(entryPage != null){
linkElement.href = entryPage;
}
return false;
}
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca;
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
}
2. Next is the home page ( the important bit are the two scripts at the top )
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Home</title>
</head>
<script type="text/javascript" src="cookie_redirects.js"></script>
<script type="text/javascript">
checkEntryPageRedirect();
</script>
<body>
<h1>Home Page</h1>
</body>
</html>
When we tell it to checkEntryPageRedirect(); it checks to see if we've tracked them coming from somewhere else, if they have we redirect them.
3. Next is the special home page ( again the important bit are the two scripts at the top )
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Home Special</title>
</head>
<script type="text/javascript" src="cookie_redirects.js"></script>
<script type="text/javascript">
trackEntryPage();
</script>
<body>
<h1>Home Special</h1>
</body>
</html>
When we tell it to trackEntryPage(); it stores a cookie that has this pages url in it, that way we know this is the home page they should return to.
4. Next is privacy page ( or any other page ) ( again we need our cookie_redirects.js script )
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Privacy</title>
</head>
<script type="text/javascript" src="cookie_redirects.js"></script>
<body>
<h1>Privacy</h1>
<p><a href="index.html">Home Page</a> - this link will just go to the home page that will redirect if it needs to<p>
<p><a href="index.html" onclick="entryPageLink(this);">Home Page</a> - this link will actually have the correct link inserted</p>
</body>
</html>
Here we don't do anything automatically when we load this page like the other 2, but we have options on how we handle links back to the home page.
The first link example sends the user to the actual home page, where we detect if they should be redirect to the special page.
For the second link, when they click it, it checks to see if they should be going to a special home page, and send them there instead of home.
And thats about it.
Any questions or problems just ask!
Paul
Tuesday, September 22nd, 2009
HI Udi,
with regards to your nofollow query, take a look at this post, particulalry jasondodd's reply:
post28218.html
Also there are a number of other posts which touch on various aspects of nofollow use in the forum also, check ou some of the results here:
search.php?keywords=nofollow
As for your main question, to track your users entry point you'll need to do it via session or cookie, requiring a scripting language like php - do you use any scripting at all or are you running an all static html site?
Alternatively if your running all html you could use some javascript in your
pages to track your users in the same way via cookie.
If you could let me know what your experience/knowledge levels are of the things i mentioned i'd be happy to help with some sample code to get you going.
HTH,
Paul
Tuesday, September 15th, 2009
Hi Simon,
to do what your asking you'll be needing to use JavaScript - you can copy and paste the script I've supplied below to do what your after. This will work in pretty much all cases except when a user has JavaScript disabled in their browser.
Just paste this into the the top of your page somewhere.
<script type="text/javascript">
var myDate = new Date();
var months = ['January','February','March','April','May','June','July','August','September','October','November','December'];
var m = myDate.getMonth();
var year = myDate.getYear() + 1900;
if(m == 0){
m = 11;
year = year - 1;
}else{
m--;
}
var month = months[m];
</script>
And then paste this anywhere in the page you want to display the date
<script type="text/javascript">document.write(month + ' ' + year);</script>
If you have any trouble or any questions, just post them and I'll get back to you asap.
Sunday, August 23rd, 2009
Thanks, will do ;-) Monday, June 15th, 2009
Very interesting indeed! The sad reality, for those of you experienced in web design & dev, of such a feature is that there is another set of conditions to account for when creating content for the web. What they are planning is undoubtedly exciting, but HTML 5 spec is a long way off being implemented across the board. So the reality is If you target content such as video etc in this manner, until the other big boys in the browser market have their browsers supporting the same standards [i.e. IE, like it or not, people still use it!!]- and more to the point: actual end users have their software up to date, in my mind at least i wouldn't be ditching flash video just yet.
@avidpoet
cheers, very interesting link
Monday, June 15th, 2009
HI Sandra, just wanting to confirm what Vince said - %refd is indeed the percentage of sales referred or sold by affiliates. Friday, June 5th, 2009
@roadrunner
I do apologize for the delayed response - I've tested this and cannot replicate the issue you are having in any browser, or under any conditions. As has been suggested, this may be a buffering/connection issue - in order to help you further you'll need to supply me with a few more details:
1. Does the video pause playback only, or stop loading together? (you'll tell by the playback bar only being grey as far as the playback pointer)
2. What web browser are you using?
If your still having issues, if you could supply me with that info we could get a better answer for you, HTH!!
Paul.
@beablessing
Thanks for offering the buffering suggestion, might be a workable solution to this..
Friday, June 5th, 2009
Thanks Mark, im sure everyone agrees, great report! Commented on Wednesday, November 11th, 2009
Great post Chris,
its definitely a very important issue that a lot of people don't address as they just don't realize. The internet is a much richer place without the shackles of IE6, not to mention the security aspect of it! Most up to speed developers i know of gave up on the old girl a long time ago, so about time everyone else did too!
Commented on
Wednesday, October 7th, 2009
© 2006 - 2010 Affilorama Group Ltd. All Rights Reserved.