Rooturaj's Blog

The words of a Techie who loved Nature.

Archive for March, 2011

After cracking my heading for whole 3 hours I finally got to get the right htaccess code to direct the payment folder for a clients site to SSL secure platform – yes https connections.

Now I want to share the codes with you so that you don’t waste time and energy on that and help cutting out on green house emissions. lolz

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]

If you want to redirect some particular folder to https version like

http://yoursite.com/securefolder/  to https://yoursite.com/securefolder/ then use this code on you htaccess file.


RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} securefolder
RewriteRule ^(.*)$ https://yoursite.com/$1 [R,L]

You can use the above code in the root htaccess file of your sites without any problem.

In case you want a different htaccess file in some particular folder then you should consider this alternative . Replace the last line of above code by this line.

RewriteRule ^(.*)$ https://yoursite.com/securefolder/$1 [R,L]

I will update more about this when I face problems regarding SSL redirections using htaccess. Till then if you have some problem implementing SSL redirections then do comment below.

Chitika Ads not displaying on my site / blog

Posted by rooturaj On March - 4 - 2011

A few days ago I installed Chitika Ads to this blog of mine after getting approved by Chitika.  I had to wonder aloud scratching my head why the ads were not being displayed.  Was I doing something wrong? Did I miss some part of the ad code? I am a programmer so I know when some part of the code is missing so that last doubt could be ruled away.

After a deep search I could not find a proper guiding post that could answer my query.

Finally I decided to dig deep into the mystery so I took my Pipe and put on my Hat to do a La Holmes. Lol. Here is my report and I hope it helps you doing justice to your Chitika ads.

Lets Assume you already have registered with Chitika and have the ad code ready with you. If not Click here to get Chitika .  Make sure you have the right ad format and you pasted in a proper place on your website/blog in a fashion so that space you provide on the sites is never smaller than the original Ad size.

Now to view if the Ads are active or not add #chitikatest=keyword at the end your site url in address bar and hit enter.
for Example to see if the ads are active on my site I will use one of the following URLs :
http://rooturaj.com/#chitikatest=technology
http://rooturaj.com/society-nature/einsteins-riddle-complete-solution-to-einsteins-puzzle/#chitikatest=puzzles games

Now when you check your url with the #tag you should be able to view some stuff in the ad space. This means you Chitika ads are already active and ready to roll.


Now this is what I see for after using #chitikatest on my own blog.

So why does it not show on my website without those #tags ?

That is because  displays ads for Search Engine Traffic only, that too primarily from US or Canada. If the User arrived on your blog/site from the search engines then you should see those ads. Else they stay empty or Collapse as per your preference while creating the add unit. You could also prefer to show Non Targeted Filler ads from Chitika network. More on Chitika

VIDEO

TAG CLOUD

Sponsors