473,657 Members | 2,497 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 1360
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.comwr ote in message
news:en******** *****@TK2MSFTNG P05.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.comwr ote:
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.UserAge nt property, or
Request.ServerV ariables 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******** *************@o 80g2000hse.goog legroups.com...
On Oct 8, 4:58 pm, "Samuel" <samuel.shul... @ntlworld.comwr ote:
>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.UserAge nt property, or
Request.ServerV ariables to retrieve the HTTP_USER_AGENT header value)

Oct 8 '07 #4
On Oct 8, 8:39 pm, "Samuel" <samuel.shul... @ntlworld.comwr ote:
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******** *************@d 55g2000hsg.goog legroups.com...
On Oct 8, 8:39 pm, "Samuel" <samuel.shul... @ntlworld.comwr ote:
>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.comwr ote:
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.goo glegroups.com.. .
On Oct 8, 9:01 pm, "Samuel" <samuel.shul... @ntlworld.comwr ote:
>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
1790
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 page_load for the default document configured in IIS (5.0) (in my case Default.aspx) fires also. This happens on every request. If I remove the default document in IIS or rename the page in the application the default documents page_load event does...
0
993
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 blank page. Those pages are not called. any idea of how i can call those pages for which i am using httphandlers.
2
3057
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 url: ....... ..... .... ... Dim url As String = FormsAuthentication.GetRedirectUrl(userID, true) Response.Redirect(url) but url value is always = "default.aspx" and there is no "default.aspx" in the whole application.
3
3602
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
2087
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 the original domain name. Of course, google and other search engines indexed the old site. So, while all links from search results will come to my new ASPX site, the links will be dead because of the changed page names (and I'm not about to go...
3
2173
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 ASP page into .NET ASPX Page(Default.aspx)? (Tried with one sample page, page does not load!) Any help is appreciated,
0
1540
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: "http://mysite/downloads/" will bring up "http://mysite/downloads/default.aspx"). I also have several other aspx pages in the same folder. I am using these other pages in a "step-through", page-by-page fashion in order to collect data from...
3
1483
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 wwroot, the only page that I can access over the internet is "default.aspx." If I enter any of the other page names into my IE addressbar, the page that shows up is default.aspx. I don't know if there's a redirect involved or not.. I don't know how to...
1
3713
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 see them as they should appear online. However, when I move the pages to wwwroot, the only page that I can access over the internet is "default.aspx." If I enter any of the other page names into my IE addressbar, the page that shows up is...
1
1259
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 aspx pages. These were developed by different developers over the past several years. What I don't understand is that some of the aspx pages compile and run fine, but they are not in a virtual directory or in a folder that's conifgured as an...
0
8305
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8726
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8603
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7320
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6163
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4151
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1604
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.