Solved

Simple SEO: domain url in title/page

Posted on 2006-10-23
2
191 Views
Last Modified: 2010-04-27
anyone know how to automatically insert the domain name into the <title></title> or the body of the index page
0
Comment
Question by:MasterMitch
  • 2
2 Comments
 
LVL 33

Expert Comment

by:humeniuk
Comment Utility
This can probably be done with a server-side scripting language like PHP or ASP.  But since this is an SEO question, I have to ask why you would want to?  It seems like a waste of the title element, which is an important SEO factor.
0
 
LVL 33

Accepted Solution

by:
humeniuk earned 250 total points
Comment Utility
I double-checked the PHP syntax ...

$_SERVER['SERVER_NAME'] refers to the host that the page is running on.
$_SERVER['PHP_SELF'] represents the current page relative to the document root.

For the title, you would use ...

<title><?php echo $_SERVER['SERVER_NAME'],$_SERVER['PHP_SELF']; ?></title>

Here's a little example: www.humeniuk.com/ee/Q_22034907.php.

Can't help you with the ASP, though.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Why do people keep talking about the Panda Update? Google’s Panda updates continue to be a hot topic of discussion because they were game-changers.  Rand Fishkin at SEOMoz hosted an excellent video Whiteboard Friday (http://www.seomoz.org/blog/how-…
Every business owner understands the significance of online customer reviews and the impact it can have on sales and revenues. With technology advancing at such a rapid pace, getting online reviews has never been easier, especially when many regions…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now