NameSilo

Please Read... I need some help.

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

jtrageser

Established Member
Impact
0
Hey guys. If you go to http://talkwebhosting.net you will see that the page is titled "Index". That is because the overall header is optimized for search engines. Well I was wondering if someone could tell me how to make it to where it displays something different only for the index.php file. I was thinking something like an "if" and "else" statement would work. Like:

If page="index.php"
then: <title>TalkWebDesign.net</title>
else: <title>{pagetitle}</title>

I just don't actually know how to write the code for it or know if it can be done at all. Any help with this will be greatly appreciated.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Nevermind guys... I found a different way that makes a whole lot more sense. I just changed it in the language file and It worked fine.
 
0
•••
here this may help

PHP:
<?php
if ($REQUEST_URI == "index.php")
{
   echo "index.php page";
}
else
{
   echo "other page";
}
?>

hope this helps.
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back