Dec/090
Trim .php extension using .htaccess
Trim your .php extension in your web application using .htaccess
RewriteEngine on
RewriteRule ^$ index.php
RewriteRule ^([a-zA-Z0-9\-\_/]*)/$ $1/index.php
RewriteRule ^([a-zA-Z0-9\-\_/]*)$ $1.php
May/090
Backdoor Opening for Google bot
Recently i have gone through the document which is related with the
backdoor opening in a Magazine sites like Windows Magazine, Nature and many more.
Most of the persons given the search query in Google then they tried with the upcoming
list of links. In the list of links few of them you can’t able to view without registration.
Why it’s happening?
All the sites are having some backdoor opening for Google bots.
so that only bots can crawl, Site owner allowed this for site hits.

what can we do?
Now you can declare your self as Google bot.
Change your browser user agent:
How?
Copy the following code in a notepad and save it as Useragent.reg
then merge with your registry
[sourcecode language='plain']
Windows Registry Editor Version 5.00
[HKEY_LOCAL MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent]
@=”Googlebot/2.1?
“Compatible”=”+http://www.googlebot.com/bot.html”
[/sourcecode]
You can also revert with the following code. but save this code as a NormalAgent.reg
[sourcecode language='plain']
Windows Registry Editor Version 5.00
[HKEY_LOCAL MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent]
@=”Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)”
[/sourcecode]
Oct/080
Domain redirect

The domain has to be redirected from http://domain.com to http://www.domain.com to stop content duplication.
This has to be done by creating the .htaccess file in the root folder.
creating .htacces file is very simple.
Open a notepad or any text editor copy paste the following code
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^yourdomain.com [nc]
rewriterule ^(.*)$ http://www.yourdomain.com/$1 [r=301,nc]
in that above code modify yourdomain then save the file as .htaccess without any filename
upload the .htaccess file in your root directory.
That is it. Your domain has redirected.






