Solved

New Title page using Mod Rewrite...

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 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