473,785 Members | 2,919 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1177
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.c om> 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.a spx?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.a spx?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
33180
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 to work before I added the changes in, and I'm not sure if that's causing it.
3
2527
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 << "C"; }}; // virtual or not ? that's the question... int main(int, char**) { A* x; A a; B b; C c;
6
5834
by: Dumitru Sipos | last post by:
Hello everybody! is there possible to have a function that is both static and virtual? Dumi.
11
4369
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 it inline. Like this.
26
3986
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 add a virtual destructor like this : " virtual ~vechile". I get this error: Undefined first referenced symbol in file vtable for vechile /var/tmp//ccC9yD6Z.o
32
4527
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
7
2347
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 that it might be a good idea to move these common aspx pages to a new folder and then make them accessible via a new virtual directory in each Web site. Is this a good idea? Bad idea? Thoughts, opinions? Thanks!
11
3438
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 exception neutral/ I got a reply from Bux with his code for a smart pointer with far fewer lines of code and more cleaner design, not over engineered like mine. ...
15
3505
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
3549
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;" instead? I think declaring a function as "=0" is the same
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10319
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10087
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
9947
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...
1
7496
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
6737
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5380
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...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.