Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

New Title page using Mod Rewrite...

Posted on 2007-03-27
3
165 Views
Last Modified: 2010-04-20
I am consolidating a few websites under one domain. I have moved over the various root folders for each website and all is working fine. What I would like to do is have the same Title information for all pages servered up by the server now containing all the websites prior to changing the underlining code. Is it possible to use something like mod rewrite and globally change the title information for each page to be the same?

I am using CentOS with the latest Apache server.

My directory structure is default:

var/www/html/newsite/index.html
var/www/html/oldsite1/oldcontentindex.html
var/www/html/oldsite2/oldcontentindex.html

I am newbie so the more information (i.e. where to place the files will be helpful)


Joel
0
Comment
Question by:Joel_Sisko
  • 2
3 Comments
 
LVL 50

Expert Comment

by:Steve Bink
ID: 18819716
I'm not sure I understand your question.  Could you give a specific example of the behavior you'd like to see?
0
 
LVL 12

Author Comment

by:Joel_Sisko
ID: 18820135
routinet,

So if I open IE, and go to www.experts-exchange.com, the blue bar at the top has the Title of the page, Experts Exchange- Microsoft Internet Explorer.

<title>Experts Exchange</title>

Now I have three seperate websites we are now locating under one domain. the content of each old site has their own Title at the top. My question is there a way to change just the Title of any page that the Apache webserver is hosting or presenting to my browser.

Joel
0
 
LVL 50

Accepted Solution

by:
Steve Bink earned 500 total points
ID: 18822015
I wouldn't think so.  The title bar is controlled by the <title> tag in the <head> section, which is part of the served content.  Even if you included a file before the content, how you give it a per-page title if the title is defined at the server level?

I solve this problem using PHP and includes file.  
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 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