Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Please Read... I need some help.

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
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
Close
here this may help

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

hope this helps.
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back