Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

New Title page using Mod Rewrite...

Posted on 2007-03-27
3
Medium Priority
?
170 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
[X]
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
  • 2
3 Comments
 
LVL 51

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 51

Accepted Solution

by:
Steve Bink earned 1500 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

670 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