Please Read... I need some help.

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back