Saturday, August 6, 2011

Create SEO Friendly URLs With Mod Rewrite and PHP

More than a year back I had written a tutorial on creating SEO Friendly URLs with Mod Rewrite and PHP, where I had explained the basic SEO concepts of rewriting URLs to make them SEO friendly.
Though It has been over a year, numerous emails and comments have dropped in for me to write the second part of the series, so here it is :-)
In the first part I had explained the basic changes you would require to do in the .htaccess file to create SEO friendly URLs, the post explained how you can internally redirect a URL to any PHP page that is stored on your web server.
In this post I will explain how you need to modify the PHP files so that it will generate the SEO friendly links for your website.
The original URL we were dealing with would create URLs as this one http://www.yoursite.com/product.php?productid=2&categoryid=3, here is a example PHP code of that generates this URL. I am leaving the Database connection code out of the example to keep the examples short.
   1: <?php
   2: // Retrieve all products from the table
   3: $result = mysql_query("SELECT product_id, product_title, category_id  FROM products") or die(mysql_error());  
   4:  
   5: //fetch the result array
   6: $products = mysql_fetch_array( $result );
   7:  
   8: //iterate the products and create links
   9: foreach($products as $product) {
  10:     $product_id = $product['product_id'];
  11:     $product_title = $product['product_title'];
  12:     $category_id = $product['category_id'];
  13:     //write the URL as http://www.yoursite.com/product.php?productid=2&categoryid=3
  14:     echo "<a href='http://www.yoursite.com/product.php?productid=$product_id&amp;categoryid=$category_id'>$product_title</a>";
  15: }
  16: ?>
In order to generate SEO friendly links you will have to change the way you write the links to the page, the changes are pretty minor and here is the example code for writing the SEO friendly URLs on your pages with PHP.
   1: <?php
   2:  
   3: //iterate the products and create links
   4: foreach($products as $product) {
   5:     $product_id = $product['product_id'];
   6:     $product_title = $product['product_title'];
   7:     $category_id = $product['category_id'];
   8:     //write the URL as http://www.yoursite.com/product/13/3/2-gb-mp3-player.htm
   9:     $product_title_url = gen_seo_friendly_titles($product_title)
  10:     echo "<a href='http://www.yoursite.com/product/$product_id/$category_id/$product_title_url.html'>$product_title</a>";
  11: }
  12:  
  13:  
  14: function gen_seo_friendly_titles($title) {
  15:     $replace_what = array('  ', ' - ', ' ',    ', ', ',');
  16:     $replace_with = array(' ', '-', '-', ',', '-');
  17:     
  18:     $title = tolowercase($title);
  19:     $title = str_replace($replace_what, $replace_with, $title);
  20:     return $title;
  21:  
  22: }
  23:  
  24: ?>
In the code example, I changed the URL structure to match what we created in the .htaccess file, I am changing the product title to SEO friendly version by calling the method gen_seo_friendly_titles which takes the product title as a parameter.
The gen_seo_friendly_titles method basically lower cases the product name and replaces spaces and dashes to form a proper URL. You can use your own replacements in the method as you see it fit.
Also as you can see I am not directly manipulating the $product_title itself and saving it in another variable called $product_title_url, since we will be using the $product_title as the anchor text and would want it to remain as it is.
This concludes the series of creating SEO friendly URLs with Mod Rewrite and PHP, hopefully this should answer the many emails and comments about where the second part is :-), feel free to drop your question in the comments.

Original Article by:

Friday, August 5, 2011

100% Ways to Promote Your Blog for Free


LINK BUILDING:
  1. Exchange links with other bloggers
  2. Use BlogRush
  3. Submit to RSS directories
  4. Submit to blog directories
  5. Submit to general directories
  6. Start a 2nd blog and link to yourself
  7. Create and give away blog themes (with a link to your blog in the footer)
  8. Create free plugins
  9. Create link bait
  10. Participate in blog carnivals
  11. Comment on DoFollow blogs
  12. WordPress Backlinks Plugin (link removed due to possible security issues)
  1. COMMUNITY:
  2. Join communities at MyBlogLog
  3. Join communities at Bumpzee
  4. Join communities at Blog Catalog
  5. Start a community at any of these sites
  6. Comment on other blogs in your niche
  7. Email your friends and contacts about a new blog post that may interest them
  8. Email your readers to say “thank you”
  9. Email other bloggers to introduce yourself
  10. Link out to other blogs
  11. SOCIAL MEDIA:
  12. Digg
  13. del.icio.us
  14. StumbleUpon
  15. Reddit
  16. Netscape
  17. Magnolia
  18. MySpace
  19. Facebook
  20. YouTube 

Original Article by:  
http://vandelaydesign.com
 

How to Get 1000 Traffic or Visitors a Day

Getting traffic to your website can be exhausting and a hard battle. Some online marketers tend to give up rather quickly because of not getting enough traffic to their website. While it is not an impossible task, you will need determination and the right resources to starting getting at least 1000 visitors a day to your website. Here is how to do it really fast:

1.       Article Sites- Articles sites are a popular way to gain some readership, but they can also get you fast traffic from the search engines. Let me be clear; article sites are not article directories. With most article sites, your content can be publishes in less than a day (in most cases, instantly), which will gain you backlinks more quickly. Some examples of article sites include; Associated Content, Helium and Ehow. Most of these article sites also give you a cash reward for page views, but expect pennies. But, to use them for traffic, simply write an article with a link to your website. It is as simple as that. You can also ping the article’s url using Pingomatic or Pingler.com.

2.       Deep-Link Directories- This is a technique that was just introduced to me like 3 days ago. Google values a website with deep-linking more than just a high page rank index/main page. Deep-linking is when you have a high page rank for all pages of your site. This would include blog post. I also like deep-link directories better because you can constantly add new pages for higher page rank.

3.       Hubsites- Hubsites are a favorite of mine because they work like article directories, only you can get faster results in shorter amount of time. Article directories take up to a week for your article to be published, while with hubsites, it takes less than a day to get your articles indexed in the search engines. Some popular hubsites are; Hubpages, Xomba and Squidoo. Hubpages is the best in my opinion because your link will be dofollow, which will get more attention from the search engines. The other 2 hubsites mentioned have a ‘nofollow’ tag, but they can still boost your page rank to your website.

4.       Forum posting- This is probably the easiest method link building ever. Here is the thing about link-building though; you have to do it in volume in order for it to work. So, just think of it this way; in order to make one sale, you will need to post 50-100 post per day. While this does seem like a tedious project, you can surf and answer other people’s questions. Just make sure to edit your signature using a low competition filled word for your anchor text. That’s it! Every time you post a comment, your signature will instantly be added. Only use forums that have a page rank of 6 or higher.

5.       Multiple blog posting- Writing more than 5 post a day can be quite exhausting, but it is good for your traffic. I would suggest writing at least 10-20 blog post per day. Sometimes, most webmasters don’t have the time to do this themselves. I would suggest buying a PLR article pack. Most of them are affordable and can be found in popular webmaster forums.

6.       Facebook- Facebook has become one of the easiest and free marketing tools to use. Since Facebook is ‘dofollow’, marketers can use the ‘status update’ feature to tell about a new product or a website and add a link as well for Facebook members to use. I would suggest using a pre-existing Facebook page to market instead of creating a new one. It can become obvious that you are only using Facebook as a marketing tool and your account will instantly be banned.

Thursday, August 4, 2011

How Important Is To Increase The Alexa Ranking Of Your Blog?


Well, to be honest, it’s not really important to increase your Alexa ranking. You are not even required to worry about the Alexa ranking since it has been questioned for the accuracy of its ranking system. Yes, the Alexa ranking is biased and doesn’t really give the exact picture. For the late comers, Alexa is a website which ranks the websites on the basis of their traffic.
Google, Facebook, Yahoo etc have been the recipients in the top 5 websites in the world. It’s a fact that many of the webmasters can show their Alexa ranking to attract direct advertisers on their website. Therefore, it’s considered to be important for website ranking. But there are other effective methods to measure the traffic of your blog (e.g. Google analytics). Although not completely reliable, it is still widely used by internet users. Although Alexa ranking cannotincrease blog traffic, it can attract business opportunities.
Let’s take a look at why everyone thinks that Alexa ranking is biased or unreliable? Well, there are few solid reasons for people to point their fingers at Alexa. First and foremost, the Alexa ranking is measured only with the Alexa toolbar on Internet explorer, Firefox and Chrome. Yes, that means that it relies completely on the people who have installed the Alexa toolbar. As you know, the number of people who have installed Alexa toolbar is very less compared to the total number of internet users. Therefore it would be foolish to trust the numbers given by Alexa. Therefore, you don’t need to worry about your Alexa rank if you already have a successful blog with good blog traffic.
When we talk about the Alexa toolbar, we can see that it is not supported in few browsers. Also, many anti-virus software such as Symantec, McAfee etc have classified this toolbar as adware or trackware. That means that it’s not that secure as you would think. However, it’s still very popular among a set of users. So, we have seen the pros and cons of Alexa ranking. If you still want to go with increasing your Alexa ranking for attracting advertisers, we are ready to give you the necessary tips.
The biggest tip is to install Alexa toolbar on your browser. You can also tell your friends and family to have the toolbar installed on their browser. Since you own the website, you will be making several visits a day. Your friends and family also will visit frequently and this will definitely help increase Alexa ranking. Remember, this will definitely increase Alexa ranking, but it’s not going to increase blog traffic in a major way.
Almost all the webmasters use Alexa toolbar. Therefore it would be beneficial if you could get the attention of webmasters community to take a look at your website. Join webmaster’s forums and post your website links. More webmasters coming to your website will definitely increase the Alexa ranking. But it is not going to increase blog traffic. You can also encourage your regular users to install Alexa toolbar on their browser. You can place a link on your website to install Alexa toolbar. If good percentage of your website users installs it, your Alexa ranking will see a rise. Well, you don’t need to worry about Alexa ranking if you already have a successful website and you make money out of it. Alexa ranking would be beneficial for the newbie on the block to attract more advertisers. Now you decide if you really want your Alexa ranking to be improved or not.
Original Article by: http://increaserss.com/