Solved

New Title page using Mod Rewrite...

Posted on 2007-03-27
3
169 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 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

Limited time offer using promo code EXPERTS25

Designed with a wealth of functionality and convenience, ATEN's new Thunderbolt™ 2 Sharing Switch takes your Thunderbolt setup to the next level. Now through August 31, 2017, Experts Exchange members get 25% off the US7220 on the ATEN USA eShop using promo code EXPERTS25.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

635 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