Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > 2 Default web Pages

Reply
Thread Tools

2 Default web Pages

 
 
Samuel
Guest
Posts: n/a
 
      10-08-2007
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




 
Reply With Quote
 
 
 
 
David Wier
Guest
Posts: n/a
 
      10-08-2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
>
>



 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      10-08-2007
On Oct 8, 4:58 pm, "Samuel" <(E-Mail Removed)> wrote:
> 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)

 
Reply With Quote
 
Samuel
Guest
Posts: n/a
 
      10-08-2007
Will that affect the search engine optimization?

"Alexey Smirnov" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> On Oct 8, 4:58 pm, "Samuel" <(E-Mail Removed)> wrote:
>> 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)
>



 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      10-08-2007
On Oct 8, 8:39 pm, "Samuel" <(E-Mail Removed)> wrote:
> Will that affect the search engine optimization?
>


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

 
Reply With Quote
 
Samuel
Guest
Posts: n/a
 
      10-08-2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> On Oct 8, 8:39 pm, "Samuel" <(E-Mail Removed)> wrote:
>> Will that affect the search engine optimization?
>>

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



 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      10-08-2007
On Oct 8, 9:01 pm, "Samuel" <(E-Mail Removed)> wrote:
> 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 ?

 
Reply With Quote
 
Samuel
Guest
Posts: n/a
 
      10-08-2007
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" <(E-Mail Removed)> wrote in message
>>news:(E-Mail Removed) oups.com...

> On Oct 8, 9:01 pm, "Samuel" <(E-Mail Removed)> wrote:
>> 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 ?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls Nathan Sokalski ASP .Net 5 01-10-2007 10:50 AM
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls Nathan Sokalski ASP .Net Web Controls 4 12-21-2006 02:50 AM
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls Nathan Sokalski ASP .Net Building Controls 4 12-21-2006 02:50 AM
How to disable/modify the default test pages for asmx web services? Maxwell2006 ASP .Net Web Services 3 04-03-2006 01:39 AM
How to disable/modify the default test pages for asmx web services? Maxwell2006 ASP .Net 3 03-31-2006 06:32 AM



Advertisments