Archive for the ‘tutorial’ Category.
2nd January 2010, 12:47 pm
Put the following lines of code in htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain.com$
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
Replace yourdomain.com with your actual domain name.
5th September 2009, 12:17 pm
It is really simple.
Just put the following 2 lines at the top of the page you are trying to redirect.
header(“HTTP/1.1 301 Moved Permanently”);
header (‘location: <<your landing page>>”);
Replace <<your landing page>> with the URL of the landing page.
Remember, you need these 2 lines before any output statement is made on your script, else you will get a ‘headers already sent’ error.
18th June 2009, 02:02 pm
If you have a blogspot blog you must have noticed the blogger navigation bar at the top of the page. Looks distracting to me!
If you want to know how to hide that navigation bar from displaying, there are 2 tricks – one based on javascript and the 2nd one pure CSS code.
Here i am describing the CSS hack to hide the navigation bar. Javascript code for hiding the navigation bar will be posted later.
Here is what need to do:
Login to your blogger account
Click on ‘Layout’ option
Click on ‘Edit HTML’ option under ‘Layout’ tab
You will be presented with the ‘Edit Template’ screen
Find following line
body {
margin: 0;
padding: 0;
font-size: small;
text-align: center;
color: $textcolor;
background: #000000
}
[NOTE: code between body{ } may vary depending on the template chosen]
Just below this code copy and paste the following code -
#navbar-iframe{
display: none;
}
Now save the template and publish.
Thats it, you are done! Check out the blog in a new window. The navigation bar will be gone.