url rewriting for subdomain in php
<p>I want to do like <a href="http://www.domainname.com/subdomain/services.php" rel="nofollow">http://www.domainname.com/subdomain/services.php</a> after url's rewriting it should be <a href="http://www.domainname.com/subdomain/services" rel="nofollow">http://www.domainname.com/subdomain/services</a> in core php.</p>

<p>I am newbie in htaccess. Please help me out.</p>
