When developing a new site, I often use the following :
<!-- This is page: WEB_Page.asp -->
<!--#include file="WEB_0.asp"-->
<!--#include file="WEB_1.asp"-->
<!--#include file="WEB_Page.htm"-->
<!--#include file="WEB_2.asp"-->
"WEB" varies and is an acronym for a client's or site's name.
"WEB_Page.asp" is the file above.
"WEB_0.asp" contains shared ASP variables, subs, etc.
"WEB_1.asp" contains shared page header HTML.
"WEB_Page.htm" contains HTML for this page.
"WEB_2.asp" contains shared page footer HTML.
"WEB_1.asp" includes "WEB_1.css" which contains shared CSS.
Other page names replace "_Page" with their own name.
E.g., "Conact Us" pages = "WEB_Cont.asp" and "WEB_Cont.htm".
(I use 8.3 naming as I have some utilities that manage my source.)
I see the advantage to this is that I've isolated the content
of each page into a file (e.g. "WEB_Page.htm") and can easily
change the look-and-feel by changing two other files:
"WEB_1.asp" and "WEB_2.asp" (and maybe "WEB_1.css").
Another advantage is that by using the ".htm" extension,
I can preview a page's content (albeit without formatting)
by double-clicking on it's filename in Windows Explorer.
My problem is that if the site already exists and I want to upgrade
it to this approach (and I don't change page names) then the
search engines will have already indexed the ".htm" files.
Thus, visitors would see the "raw" content.
Other than renaming my content with an ".html" extension, how
can I automatically redirect visitors to the ".asp" page when they
visit the corresponding ".htm" page?
Thanks in advance for any suggestions.
One thought I had while composing this post:
I could associate a different extension in Windows Explorer
so that a double-click will still open them in Internet Explorer.
(And, of course, add a custom 404 page to redirect visitors.) 7 1339
delete the .htm and put in some custom handling in the 404 page, to redirect
from *.htm to *.asp, maybe keep a list of valid ones to prevent infinite
looping, etc.
Or just replace all the code in the .htm files with javascript redirectors
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"McKirahan" <Ne**@McKirahan.com> wrote in message
news:Bq********************@comcast.com... When developing a new site, I often use the following :
<!-- This is page: WEB_Page.asp --> <!--#include file="WEB_0.asp"--> <!--#include file="WEB_1.asp"--> <!--#include file="WEB_Page.htm"--> <!--#include file="WEB_2.asp"-->
"WEB" varies and is an acronym for a client's or site's name.
"WEB_Page.asp" is the file above. "WEB_0.asp" contains shared ASP variables, subs, etc. "WEB_1.asp" contains shared page header HTML. "WEB_Page.htm" contains HTML for this page. "WEB_2.asp" contains shared page footer HTML.
"WEB_1.asp" includes "WEB_1.css" which contains shared CSS.
Other page names replace "_Page" with their own name. E.g., "Conact Us" pages = "WEB_Cont.asp" and "WEB_Cont.htm". (I use 8.3 naming as I have some utilities that manage my source.)
I see the advantage to this is that I've isolated the content of each page into a file (e.g. "WEB_Page.htm") and can easily change the look-and-feel by changing two other files: "WEB_1.asp" and "WEB_2.asp" (and maybe "WEB_1.css").
Another advantage is that by using the ".htm" extension, I can preview a page's content (albeit without formatting) by double-clicking on it's filename in Windows Explorer.
My problem is that if the site already exists and I want to upgrade it to this approach (and I don't change page names) then the search engines will have already indexed the ".htm" files. Thus, visitors would see the "raw" content.
Other than renaming my content with an ".html" extension, how can I automatically redirect visitors to the ".asp" page when they visit the corresponding ".htm" page?
Thanks in advance for any suggestions.
One thought I had while composing this post: I could associate a different extension in Windows Explorer so that a double-click will still open them in Internet Explorer. (And, of course, add a custom 404 page to redirect visitors.)
Please do not top post:)
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:Oa**************@TK2MSFTNGP12.phx.gbl... delete the .htm and put in some custom handling in the 404 page, to
redirect from *.htm to *.asp, maybe keep a list of valid ones to prevent infinite looping, etc. Or just replace all the code in the .htm files with javascript redirectors
-- Curt Christianson Site & Scripts: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"McKirahan" <Ne**@McKirahan.com> wrote in message news:Bq********************@comcast.com... When developing a new site, I often use the following :
<!-- This is page: WEB_Page.asp --> <!--#include file="WEB_0.asp"--> <!--#include file="WEB_1.asp"--> <!--#include file="WEB_Page.htm"--> <!--#include file="WEB_2.asp"-->
"WEB" varies and is an acronym for a client's or site's name.
"WEB_Page.asp" is the file above. "WEB_0.asp" contains shared ASP variables, subs, etc. "WEB_1.asp" contains shared page header HTML. "WEB_Page.htm" contains HTML for this page. "WEB_2.asp" contains shared page footer HTML.
"WEB_1.asp" includes "WEB_1.css" which contains shared CSS.
Other page names replace "_Page" with their own name. E.g., "Conact Us" pages = "WEB_Cont.asp" and "WEB_Cont.htm". (I use 8.3 naming as I have some utilities that manage my source.)
I see the advantage to this is that I've isolated the content of each page into a file (e.g. "WEB_Page.htm") and can easily change the look-and-feel by changing two other files: "WEB_1.asp" and "WEB_2.asp" (and maybe "WEB_1.css").
Another advantage is that by using the ".htm" extension, I can preview a page's content (albeit without formatting) by double-clicking on it's filename in Windows Explorer.
My problem is that if the site already exists and I want to upgrade it to this approach (and I don't change page names) then the search engines will have already indexed the ".htm" files. Thus, visitors would see the "raw" content.
Other than renaming my content with an ".html" extension, how can I automatically redirect visitors to the ".asp" page when they visit the corresponding ".htm" page?
Thanks in advance for any suggestions.
One thought I had while composing this post: I could associate a different extension in Windows Explorer so that a double-click will still open them in Internet Explorer. (And, of course, add a custom 404 page to redirect visitors.)
Thanks for your reply.
Placing the following at the top of "WEB_Page.htm" seems to work:
<% If 0 = 1 Then %>
<meta http-equiv="refresh" content="0;
URL=http://www.domain.com/WEB_Page.asp">
<% End If %>
even though the <meta> tag is in the body of the page (inside of a table).
The <meta> tag executes when the ".htm" page is invoked but is ignored if
the ".asp" page (which "includes" the ".htm" file) is invoked.
Any thoughts (from anyone)? Thanks.
Please do not bottom post:) Any thoughts (from anyone)? Thanks.
Yes. When someone helps you with your problem, don't try to enforce your
misplaced ettiquette with them. Topposting is common in these groups.
Bob Lehmann
"McKirahan" <Ne**@McKirahan.com> wrote in message
news:f9********************@comcast.com... Please do not top post:)
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message news:Oa**************@TK2MSFTNGP12.phx.gbl... delete the .htm and put in some custom handling in the 404 page, to redirect from *.htm to *.asp, maybe keep a list of valid ones to prevent infinite looping, etc. Or just replace all the code in the .htm files with javascript
redirectors -- Curt Christianson Site & Scripts: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"McKirahan" <Ne**@McKirahan.com> wrote in message news:Bq********************@comcast.com... When developing a new site, I often use the following :
<!-- This is page: WEB_Page.asp --> <!--#include file="WEB_0.asp"--> <!--#include file="WEB_1.asp"--> <!--#include file="WEB_Page.htm"--> <!--#include file="WEB_2.asp"-->
"WEB" varies and is an acronym for a client's or site's name.
"WEB_Page.asp" is the file above. "WEB_0.asp" contains shared ASP variables, subs, etc. "WEB_1.asp" contains shared page header HTML. "WEB_Page.htm" contains HTML for this page. "WEB_2.asp" contains shared page footer HTML.
"WEB_1.asp" includes "WEB_1.css" which contains shared CSS.
Other page names replace "_Page" with their own name. E.g., "Conact Us" pages = "WEB_Cont.asp" and "WEB_Cont.htm". (I use 8.3 naming as I have some utilities that manage my source.)
I see the advantage to this is that I've isolated the content of each page into a file (e.g. "WEB_Page.htm") and can easily change the look-and-feel by changing two other files: "WEB_1.asp" and "WEB_2.asp" (and maybe "WEB_1.css").
Another advantage is that by using the ".htm" extension, I can preview a page's content (albeit without formatting) by double-clicking on it's filename in Windows Explorer.
My problem is that if the site already exists and I want to upgrade it to this approach (and I don't change page names) then the search engines will have already indexed the ".htm" files. Thus, visitors would see the "raw" content.
Other than renaming my content with an ".html" extension, how can I automatically redirect visitors to the ".asp" page when they visit the corresponding ".htm" page?
Thanks in advance for any suggestions.
One thought I had while composing this post: I could associate a different extension in Windows Explorer so that a double-click will still open them in Internet Explorer. (And, of course, add a custom 404 page to redirect visitors.)
Thanks for your reply.
Placing the following at the top of "WEB_Page.htm" seems to work:
<% If 0 = 1 Then %> <meta http-equiv="refresh" content="0; URL=http://www.domain.com/WEB_Page.asp"> <% End If %>
even though the <meta> tag is in the body of the page (inside of a table).
The <meta> tag executes when the ".htm" page is invoked but is ignored if the ".asp" page (which "includes" the ".htm" file) is invoked.
Any thoughts (from anyone)? Thanks.
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:e9**************@tk2msftngp13.phx.gbl... Please do not bottom post:)
Any thoughts (from anyone)? Thanks. Yes. When someone helps you with your problem, don't try to enforce your misplaced ettiquette with them. Topposting is common in these groups.
Bob Lehmann
[snip]
"When replying to a message on the group trim quotes of the
preceding messages to the minimum needed and add your comments
below the pertinent section of quoted material, as per
FYI28/RFC1855 (never top post)."
-- http://www.jibbering.com/faq/
> "When replying to a message on the group trim quotes of the preceding messages to the minimum needed and add your comments below the pertinent section of quoted material, as per FYI28/RFC1855 (never top post)."
-- http://www.jibbering.com/faq/
Oh Christ, not this again.
I use both styles depending on the situation, and I'll stop using NNTP
entirely before I'll be told how I should help people based on some stupid
global dictation on some web site.
Amen brotha.....amen.
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:ON**************@TK2MSFTNGP12.phx.gbl... "When replying to a message on the group trim quotes of the preceding messages to the minimum needed and add your comments below the pertinent section of quoted material, as per FYI28/RFC1855 (never top post)."
-- http://www.jibbering.com/faq/
Oh Christ, not this again.
I use both styles depending on the situation, and I'll stop using NNTP entirely before I'll be told how I should help people based on some stupid global dictation on some web site.
>> When replying to a message on the group trim quotes of the preceding
messages to the minimum needed and add your comments below the pertinent
section of quoted material, as per FYI28/RFC1855 (never top post).
Many times the quotes are not trimmed and there's nothing more annoying than
seeing a whole page of quotes from a preceeding posting and then a reply at the
bottom which I am forced to scroll down to see. I tend to ignore such postings.
Brian This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Me |
last post by:
I would like to redesign my existing site into php using classes.
I am not the most experienced developer with PHP, and would like to know
if anyone can give me some input on a starting point for a...
|
by: Andrew Thompson |
last post by:
I have a (rather challenged) css design for my site logo at
http://www.lensescapes.com/tst/photologo.jsp
It shows not only the current rendering of the design,
but also has links to the CSS...
|
by: Jim |
last post by:
This si a repost, I apologize but perhaps my original inquiry got
buried under all the usenet spam...
I need some help getting started with a .NET web project for a
commercial site. I am new to...
|
by: Litron |
last post by:
Appologies, this isn't really a javascript specific question....
Just wondering what the current size standard is for web-page design...
it used to be 800 x 600 pxls (which seems quite small...
|
by: Dave |
last post by:
A friend of mine pointed out the other day that certain elements on my web
site are too small. But in most of what I publish, fonts are at default size
or smaller, and my images are easy to see. I...
|
by: John Morgan |
last post by:
Though I have designed and implemented a number of large reasonably
well received web sites I do not consider myself a graphics designer
I am now for the first time going to work with a ...
|
by: Dave Turner |
last post by:
I know that its impossible to completely prevent somebody from ripping a
site (or cracking software) if that person has the skills and the
time/patience, but there are tricks that can be employed...
|
by: vijaykokate |
last post by:
Our company http://www.softnmation.com/ offers its customers a great
variety of products. Everything you need can be found in this site.
Web Template, CSS Template, Logo Template, Corporate...
|
by: Phils |
last post by:
Hi guys;
new to asp web design;
I have design a simple web site that allows our client to login and
view reports we manage for them. this works fine as on our network as i
can connect...
|
by: Neo Geshel |
last post by:
NOTE: PAST EXPERIENCE HAS SHOWN ME THAT MANY ON USENET FAIL TO READ
ARTICLES PROPERLY PRIOR TO ANSWERING. I AM LOOKING FOR VERY SPECIFIC
INFORMATION, THEREFORE PLEASE READ AND UNDERSTAND...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |