473,503 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

2 Default web Pages

Hi

I have one website that is supposed to run with 2 URLs.
Those that enter using URL A should see one html file (for search engine
optimisation) and the others entering using URL B should see be redirected
to other aspx file,
Since the default file is an HTML fie how can I redirect those entering via
the other URL to the ASPX page?

Thank you,
Samuel


Oct 8 '07 #1
7 1348
the only way I know of checking the urls and redirecting, is with a dynamic
platform, like asp, asp.net or php....
if it IS possible with HTML, I certainly haven't heard of a way to do it.

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"Samuel" <sa************@ntlworld.comwrote in message
news:en*************@TK2MSFTNGP05.phx.gbl...
Hi

I have one website that is supposed to run with 2 URLs.
Those that enter using URL A should see one html file (for search engine
optimisation) and the others entering using URL B should see be redirected
to other aspx file,
Since the default file is an HTML fie how can I redirect those entering
via the other URL to the ASPX page?

Thank you,
Samuel


Oct 8 '07 #2
On Oct 8, 4:58 pm, "Samuel" <samuel.shul...@ntlworld.comwrote:
Hi

I have one website that is supposed to run with 2 URLs.
Those that enter using URL A should see one html file (for search engine
optimisation) and the others entering using URL B should see be redirected
to other aspx file,
Since the default file is an HTML fie how can I redirect those entering via
the other URL to the ASPX page?

Thank you,
Samuel
Make the aspx page your site's default page and check the browser type
in server-side code (use Request.UserAgent property, or
Request.ServerVariables to retrieve the HTTP_USER_AGENT header value)

Oct 8 '07 #3
Will that affect the search engine optimization?

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@o80g2000hse.googlegro ups.com...
On Oct 8, 4:58 pm, "Samuel" <samuel.shul...@ntlworld.comwrote:
>Hi

I have one website that is supposed to run with 2 URLs.
Those that enter using URL A should see one html file (for search engine
optimisation) and the others entering using URL B should see be
redirected
to other aspx file,
Since the default file is an HTML fie how can I redirect those entering
via
the other URL to the ASPX page?

Thank you,
Samuel

Make the aspx page your site's default page and check the browser type
in server-side code (use Request.UserAgent property, or
Request.ServerVariables to retrieve the HTTP_USER_AGENT header value)

Oct 8 '07 #4
On Oct 8, 8:39 pm, "Samuel" <samuel.shul...@ntlworld.comwrote:
Will that affect the search engine optimization?
Yup, and it's called cloaking
http://en.wikipedia.org/wiki/Cloaking

Oct 8 '07 #5
Actually the purpose is to divide between the commercial and the retail
customers

The question regarding the search engine is that the whole reason why I have
an HTML page is for the optimisation an having an ASP page may defeat the
purpose

I also wonder whether the search engine finds the website by the IP address
or the domain name


"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@d55g2000hsg.googlegro ups.com...
On Oct 8, 8:39 pm, "Samuel" <samuel.shul...@ntlworld.comwrote:
>Will that affect the search engine optimization?

Yup, and it's called cloaking
http://en.wikipedia.org/wiki/Cloaking

Oct 8 '07 #6
On Oct 8, 9:01 pm, "Samuel" <samuel.shul...@ntlworld.comwrote:
Actually the purpose is to divide between the commercial and the retail
customers

The question regarding the search engine is that the whole reason why I have
an HTML page is for the optimisation an having an ASP page may defeat the
purpose

I also wonder whether the search engine finds the website by the IP address
or the domain name
There is no difference between asp and html in terms of optimization.
Why not to do it in a simple way having two different links, for
example, corp.com/commercial and corp.com/retail ?

Oct 8 '07 #7
It is beneficial to have default webpage because not everyone will bother
typing the name of the file such as Index.html passed the URL but then the
commercial customers who don't bother to type the file name will see the
home page of the retail and this is what I am trying to avoid.

The question is whether I can have the aspx file as the default page and in
the load event redirect users if necessary and then a separate html page
(that will not be the default page) for the search engines, but will that
affect the search engines because it is no longer the default web page.
>>"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@g4g2000hsf.googlegr oups.com...
On Oct 8, 9:01 pm, "Samuel" <samuel.shul...@ntlworld.comwrote:
>Actually the purpose is to divide between the commercial and the retail
customers

The question regarding the search engine is that the whole reason why I
have
an HTML page is for the optimisation an having an ASP page may defeat the
purpose

I also wonder whether the search engine finds the website by the IP
address
or the domain name

There is no difference between asp and html in terms of optimization.
Why not to do it in a simple way having two different links, for
example, corp.com/commercial and corp.com/retail ?

Oct 8 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1783
by: aDc | last post by:
Hello, I am getting some strange behavior with my ASP.NET application. Anytime I make a request to a page in the application the page_load for that page is fired as expected BUT then the...
0
987
by: vinny | last post by:
hi, After calling my httphandlers , i want the default httphandler also to be called. How do i call the default httphandler? Because the pages where i am using my own httphandler, returns a...
2
3049
by: zino | last post by:
Hi, in asp.net , I set the start page to "myStartingPage.html" when user get authenticated and the cookie is created, the following statement is supposed to redirect him to the original requested...
3
3594
by: Phil Certain | last post by:
Hi I'm building a site that has publicly available pages and password protected pages. Publicly available pages reside in: /public and password protected pages reside in: /private
7
2081
by: Frankie | last post by:
I just acquired a new customer who had an existing ASP classic Web site. When I took over, I transferred all content to ASPX pages that have different page names than the prior Web site had. I kept...
3
2154
by: vijay_kerji | last post by:
Dear All, I have a ASP web application running with CS2000. It has Default page as default.asp It also contains .NET ASPX pages, which will be called from ASP pages. Can I convert the default...
0
1518
by: Joey | last post by:
I have a web app that contains several subfolders. In one of them, I have a page set up as "Default.aspx", so users can hit it just by typing the directory name in the browser address bar (example:...
3
1477
by: ytterbius | last post by:
Hello, I have a site with several pages. When I debug in visual developer I'm able to open the various pages and see them as they should appear online. However, when I move the pages to...
1
3705
by: ytterbius | last post by:
Hello, I posted this earlier to the ASP section, but I think the problem is a IIS one. I have a site with several pages. When I debug in visual developer I'm able to open the various pages and...
1
1249
by: Dave Bender | last post by:
I'm confused about whether a web application needs to be defined in IIS as an "application" to run. We have a client who has a medium sized web site (~2,000 pages), including some ASP and some...
0
7201
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
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,...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.