473,320 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

virtual static pages

Hi there,

I need to convert my ASP.NET site from a dynamic querystring site to a static site. Obviously I still want all the dynamic functionality but want all search engines to be able to spider my site.

Can anyone point me in the direction of a full and decent article on this technique as I am having trouble finding useful information.

thanks
RuSs

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Nov 18 '05 #1
4 1161
Hi Russ:

This is something you can do with URL rewriting.

See:
URL Rewriting in ASP.NET
http://msdn.microsoft.com/library/de...lrewriting.asp

--
Scott
http://www.OdeToCode.com

On Mon, 26 Jul 2004 07:51:18 -0700, DotNetJunkies User
<User@-NOSPAM-DotNetJunkies.com> wrote:
o


Nov 18 '05 #2
Scott Allen <bitmask@[nospam].fred.net> wrote in message news:<l0********************************@4ax.com>. ..
Hi Russ:

This is something you can do with URL rewriting.

See:
URL Rewriting in ASP.NET
http://msdn.microsoft.com/library/de...lrewriting.asp


Cheers scott. I normally like to figure out things myself but was
getting no where. I'll have a look thru Ode to code too.

RuSs
Nov 18 '05 #3
Scott Allen <bitmask@[nospam].fred.net> wrote in message news:<l0********************************@4ax.com>. ..
Hi Russ:

This is something you can do with URL rewriting.

See:
URL Rewriting in ASP.NET
http://msdn.microsoft.com/library/de...lrewriting.asp


Also Scott.

It seems that the way to do it is with <lookFor> and <sendTo> parts in
the web.config. My site has a content manangement system behind it
that allows users to add pages to the site so a new page might be
http://<my site>mainPage.aspx?pageID=<new ID>. So does that mean I
have to constantly add (and remove as users can delete pages) the
<lookFor> and <sendTo> parts in my web.config. Or is the solution just
to choose a certain few pages that I know will remain contstant (ie.
http://<my site>/AboutUs = http://<my site>/mainPage=37) and just add
the <lookFor> and <sendTo> parts for these contant pages. Or is there
a dynamic way to add new <lookFor> and <sendTo> parts?? Sorry for all
the questions.

thanks
RuSs
Nov 18 '05 #4
Hi Russ:

I think it really depends on how you write the logic in the
HttpHandler. Some HttpHandlers are written to intercept and parse
every incoming request and there is no configuration to tweak in
web.config. So you should be able to write a handler that just looks
for /mainPage/ in the URL and then direct the request to the correct
resource internally.

Here are some open source applications that I know use some form of
this technique. Looking at the source could give you some additional
ideas:

Community Starter Kit
http://asp.net/StarterKits/DownloadC...ndex=0&tabid=1

..Text
http://www.gotdotnet.com/Community/W...e-348f6b77c407
(.Text uses regular expressions in the web.config to determine
matching URLs)

Jeff Prossie also has a URL rewriting article with very simple code:
http://www.aspnetpro.com/NewsletterA...200309pj_l.asp

HTH!

--
Scott
http://www.OdeToCode.com

On 27 Jul 2004 02:26:22 -0700, ru************@hotmail.com (Russell)
wrote:
Scott Allen <bitmask@[nospam].fred.net> wrote in message news:<l0********************************@4ax.com>. ..
Hi Russ:

This is something you can do with URL rewriting.

See:
URL Rewriting in ASP.NET
http://msdn.microsoft.com/library/de...lrewriting.asp


Also Scott.

It seems that the way to do it is with <lookFor> and <sendTo> parts in
the web.config. My site has a content manangement system behind it
that allows users to add pages to the site so a new page might be
http://<my site>mainPage.aspx?pageID=<new ID>. So does that mean I
have to constantly add (and remove as users can delete pages) the
<lookFor> and <sendTo> parts in my web.config. Or is the solution just
to choose a certain few pages that I know will remain contstant (ie.
http://<my site>/AboutUs = http://<my site>/mainPage=37) and just add
the <lookFor> and <sendTo> parts for these contant pages. Or is there
a dynamic way to add new <lookFor> and <sendTo> parts?? Sorry for all
the questions.

thanks
RuSs


Nov 18 '05 #5

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

Similar topics

2
by: john smith | last post by:
I'm wondering if it's possible to declare a pure virtual member function? Ie is: class A{ public: virtual static void f() const = 0; }; legal? I'm getting compile errors for code that used...
3
by: Philippe Guglielmetti | last post by:
Look at these few lines of code: class A { public: virtual void f() { cout << "A";}}; class B : public A{public: static void f() { cout << "B"; }}; class C : public B{public: void f() { cout <<...
6
by: Dumitru Sipos | last post by:
Hello everybody! is there possible to have a function that is both static and virtual? Dumi.
11
by: santosh | last post by:
Hello, I was going through the Marshal Cline's C++ FAQ-Lite. I have a doubt regarding section 33.10. Here he is declaring a pure virtual destructor in the base class. And again defining...
26
by: pmizzi | last post by:
When i compile my program with the -ansi -Wall -pedantic flags, i get this warning: `class vechile' has virtual functions but non-virtual destructor, and the same with my sub-classes. But when i...
32
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
7
by: J Smithers | last post by:
I have several ASPX pages (with code-behind logic) that I reuse amongst many Web sites on the same production server. Currently each Web site has its own copy of these aspx pages. I was thinking...
11
by: Nindi73 | last post by:
A few days a ago I posted my code for a deep copy pointer which doesn't require the pointee object to have a virtual copy constructor. I need help with checking that it was exception safe and...
15
by: Philipp | last post by:
Hello I don't exactly understand why there are no static virtual functions. I would have liked something like this: class Base{ static virtual std::string getName(){ return "Base"; } }
17
by: Jess | last post by:
Hello, If I have a class that has virtual but non-pure declarations, like class A{ virtual void f(); }; Then is A still an abstract class? Do I have to have "virtual void f() = 0;"...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.