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 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
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)
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)
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
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 ?
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 ? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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
|
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...
| |
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...
|
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:...
|
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...
|
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...
|
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...
|
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,...
| |
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...
|
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: 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...
|
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...
|
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...
|
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...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |