Posts Tagged Amp
Regular expression and Rewrite Rule sample
Posted by in htaccess on June 3rd, 2010
RewriteRule ^/?(tag)/([a-zA-Z_$]+)$ /index.php?option=com_tag&t=$1&t1=$2 [L]
^ -> start of expresion
/? -> / can exist or not.
(tag) -> a string “tag”
Does Google prefer Valid HTML & CSS
Posted by in Increase traffic on September 9th, 2009
I recently heard my friend saying that valid HTML & CSS is impotant. It can make your website rank higher in Google search. Is that true?? To prove this I browse a lot about this, and here’s the result:
- From site-reference.com, saying that “Not only did Google rank both sites with obviously wrong HTML higher, they even refused to include one of the sites with valid HTML altogether“!
- A discussion from webmasterworld. My summary, valid HTML does not help your ranking but probably will help you get indexed.
- From streetdirectory. “How important is valid html if Google, Yahoo!, and MSN don’t even practice it themselves?”
So for me, if I have time, I will do the validation. It’s not too important for me.
Cloud Tag at wordpress
Posted by in Wordpress on July 8th, 2009
The syntax for wordpress cloud tag is :
- ’smallest’
- ‘largest’
- ‘unit’
- ‘number’
- ‘orderby’
<?php wp_tag_cloud(’smallest=8&largest=22&number=40′); ?>
Google maps code sample
Posted by in PHP code on June 20th, 2009
This article is a sample for google maps. You just need to download the code here. In the example, I show Google Headquarters in Google Maps. But before you download, you need to sign up for Google Maps API here and get a key that you will use in the code. From the code that you have download, find the following code:
<script src=”http://maps.google.com/maps?file=api&v=2&key=change-this-to-your-google-api” type=”text/javascript”></script>
and change “change-this-to-your-google-api” to your key. If you have any problem just comment below.












