Solved

New Title page using Mod Rewrite...

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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