Archive pour la Catégorie 'Script'

Redirect to www

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^your-domain-here\.com
RewriteRule ^(.*)$ http://www.your-domain-here.com/$1 [R=permanent,L]

This code placed in your .htaccess will give you the possibility to send any visitor coming to your-domain-here.com to www.your-domain-here.com. This has a great advantage especially with search engines because all your pages will be referenced under the same “subdomain” as if you had both, you’d get www.your-domain-here.com links and your-domain-here.com links which would count as different pages.

K2 new slider option: killing your chances of getting spidered?

Well, it took me some time until I realise that this cool slider bar option as something negative about it: it hides contains from search engines spiders.

Using AJAX coding, the only one who can trigger the request to the server are the users, a bot wouldn’t be able to read any content except the one that’s appearing on the front page.

Is this going to kill my chances of getting spidered?
Actually yes. As the top navigation (the ­­Older and Newer links) are also programmed to trigger javascript, the spider cannot go anywhere. When it reads a # link, it just stays on the same page, no new content for the bot to read.

The thing though is that the spider can still view your list of latest post which are static. When they go to theses pages, nothing is in AJAX format, the links are all going to another post so it’s fine. The only impact the slider has is it removes a bit of power from your front page.

Cross-website feed

It’s been a long time since I wanted to put a feed of my others blog on each and every of them, pretty much like Engadget does. This way, when visitors go at the bottom of the page, they get to see my latest post in others topic: technology-science, humour and lifestyle, money making or self-improvement. I think this small addition (which took me near 2 hours to setup) will improve the number of visitors I will have as they will go from one site to another, if the subject interests them.

To set it up, I had to find a rss aggregator in order to get the rss feeds to show up on my page. OzPolitics Wordpress plugin: aggregated blog feeds did this for me. It’s well written but I think that the way you show the rss feeds themselves is not that well designed. But anyway, I did with what I have. I wrote a small CSS code in order for the feeds to be beside each others and not all lined up, then changed the CSS code for the list so it shows squares instead of dots. Nothing complicated, it just takes time. + I had to do it on 4 blogs.

Well, I’m happy it’s done. I’ll wait for the results and see if there’s place for improvement.

Back from the exam

The exam was what I expected and I think I did fine.

For now, let’s have some fun.

I know that search engines loves when pages are well optimized and looking at my blog @ http://www.excitris.com, I saw how unoptimized it was even though it looked fine.

I went to the page source and looked at the page size: almost 40.0 KB of text. I started writing a “cloaker” script which would make smaller page for search engine and only from removing the header + the and below code I was at 21.5 KB of text. What a great bandwidth saving and a page optimisation at the same time. I’m now working on the part where it removes the comments. My test shows that by removing the comments, I can go to a pagesize of 18.2 KB. Removing the ads: 16.7 KB.

The page sure looks ugly, but search engines spiders don’t care. They want the actually content, not the html format (except maybe the title, h1, h2 and such). From 40.0 KB I went to 16.7 KB, a saving of 58.3% in bandwidth. This will also assure me to get better ranking in search engines as the stuff their spider is looking for is way more near the top.

I’ll make the script available as soon as there aren’t anymore bugs when the page convert. So stay tuned.

Bump online people threads to the top

Have you ever been on a forum waiting for people to reply to your threads? Do you find it frustrating to have to bump your own threads so you can get the response you’re looking for? If yes, then you might want to look at this concept idea:

When you are online, varying from 5-10 of your “latest” post would be bumped to the top automatically as your are online. This would increase the chances of getting a reply to your messages. As well all know though, forums are being browsed by thousand of people so bumping all those threads all at once would be useless & cpu consuming that’s why instead of bumping all of our threads, we would be able to bump 5 chosen thread each time we are online.

Doing so will help your own forum to grow as members who are online longer have better chances of getting replies and then to reply so more posts. The problem with current forums is that threads which aren’t always done end up not being answered. Why not make sure all threads are getting the reply they should get? When a user is satisfied with the answer, he can remove the thread from his list => yes, this means we could ask for others people thread to get replied to.

Yet, this is only an idea. I’m sure that forums such as vBulletin and Invision Power Board will find this thread and will add it to their next release as people are avid of answers. By giving them a better opportunity to get their answer, community grows, people are happy, everyone’s happy :)