Syed Rahman in PHPExperts Group wrote:
Hi php Experts.....
I want to add my site to google search engine...and want to display my site in google within first page ..i mean i want to use search engine optimization...how can i do this...can anyone help me??? :)
Asif Anwar - SEO+SEM Expert, SMM: Toplinked 3.3K+ > 10M+ LION writes:
Please follow these steps:
Make Search Engine Friendly (SEF) URLs from PHP
You can do it with mod_rewrite rules. There are a lot of free tutorials on how you can do that. If you are using Joomla, then OpenSEF is the best solution. Just Google around a bit to find this Joomla Extension.
You have to switch on the Rewrite Engine (RewriteEngine On) in htaccess file. In Joomla, you have to find the line and hash it out. If you are using PHP, then please follow the instructions in this page.
Convert all .php extensions into .html files
Theses codes below in the htaccess file in your root server should do the trick:
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
You may have to rename the htaccess.txt file into .htaccess
Generate XML Sitemap
If you are using Joomla, the OPenSEF can automatically generate the XML Sitemap for you. However, the problem is, you have to click each link in the XML Sitemap to cache the HTML pages in your server.
For PHP, there are some automated sitemap generating software and scripts. You have to google around. You can tryout PHP Sitemap Generator from XML-Sitemaps.
Submit your XML Sitemap to Google Webmaster Central
I am not going to give any instructions here, coz I have already talked about it in my blog. Please read it here.
After submitting, you can get almost all the pages listed in the XML Sitemap into Google's Repository within 24-48 hours. I usually got my sites listed in 24 hours this way.
Bringing it in first SERP (Search Engine Result Page)
There is no secret about this. You can read the total tutorial on Search Engine Optimization (SEO) by Dan Thies. I have mentioned the link in my previous post. Please read it here.
I hope these instructions will help you to go about with Search Engine Optimization (SEO). However, developing Marketing Strategy for online marketing is different than just routine work for Search Engine Optimization (SEO). If you get your hands dirty on this, you can realize that.


2 comments:
dear asif bhai,
im having a problem. xml-sitemap.org shows that i have more than 500 pages and therefore dont list all. some services show i have more than 1000 pages and lists but use session id for the phpbb3 forum which dont work later. so i want to install a auto sitemap generator on the site.please advise and guide me accordingly. one more thing, what would be the code for turning all the php extension to html?
regd
shahriar
Shahriar Vai,
XML-Sitemap site allows only the first 500 pages to be indexed in sitemap. This amount is more than enough for a small to medium-sized site.
If you need further amount, then they have paid version worth $20 (+$10 if you need them to install your sitemap).
But, if you are using Joomla, the best way is to download JooMap and install it in your site. It automatically generates a neat looking sitemap, which you can submit to Google, Yahoo and others that allow XML Sitemaps.
However, for PHP Sites other than Joomla, you can try the services listed here (Google Code). Most of them should be paid service for large sites.
Post a Comment