Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-19-2005, 06:20 PM
No Clue's Avatar
WebProWorld Member
 

Join Date: Dec 2004
Location: Houston, TX
Posts: 61
No Clue RepRank 0
Default Having server to generat staticpages rather than dynam. How?

hi.

I remember one of my friends had phpbb forum on an apache server and all the posts were in html. even if you would post a new topic, it would generate a HTML file for you. that is a great way to have a search engine friendly website.
i've heard there is a way to have the server to generate the pages in HTML rather than dynamic pages. that was for apache servers I guess. there was a code that you had to place on root directory. is there anything similar available for windows servers?
Reply With Quote
  #2 (permalink)  
Old 06-19-2005, 09:18 PM
No Clue's Avatar
WebProWorld Member
 

Join Date: Dec 2004
Location: Houston, TX
Posts: 61
No Clue RepRank 0
Default

well, here iw what I've found so far:

Quote:
IISRewrite is a rule-based rewriting engine that allows a webmaster to manipulate URLs on the fly in IIS.

URLs are rewritten before IIS has handed over the request to be processed, so requests for HTML files, graphics, program files, and even entire directory structures can be rewritten before they are passed to ASP scripts for processing.

IISRewrite was written to solve some practical problems that are nearly impossible to solve with IIS and ASP. It solves the compatibility issues when doing dynamic downloads with ASP, it allows portions of dynamic sites to be indexed by search engines as if they were static HTML files, and can provide a way to customize web sites based on the client's browser type without the use of Javascript.

IISRewrite is a stripped down implementation of Apache's mod_rewrite modules for IIS. Webmasters who have used Apache's mod_rewrite in the past will find that much of the configuration and functionality is the same.

IISRewrite is compatible with Microsoft's ISAPI specification and has been tested on Windows NT Server 4.0 running IIS 4 and Windows 2000 Server running IIS 5.
it's a DLL file actually and it requiers dedicated server. I'm sure there should be some other ways for shared hosting as well.
Reply With Quote
  #3 (permalink)  
Old 06-19-2005, 11:21 PM
brian.mark's Avatar
Administrator
 

Join Date: Jul 2004
Location: Omaha
Posts: 2,717
brian.mark RepRank 2brian.mark RepRank 2
Default You could use...

You could use mod_rewrite on Apache to make it seem like it was actually html files. I have a script that runs through our dynamic site and pulls down the generated html, then saving it in a html file. Allows us to use our CMS without having dynamic URL's, and I can do some filtering of the code as needed.

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
  #4 (permalink)  
Old 06-19-2005, 11:37 PM
No Clue's Avatar
WebProWorld Member
 

Join Date: Dec 2004
Location: Houston, TX
Posts: 61
No Clue RepRank 0
Default

thanks brian.
I can't really move to apache since I don't know PHP.
Reply With Quote
  #5 (permalink)  
Old 06-19-2005, 11:39 PM
brian.mark's Avatar
Administrator
 

Join Date: Jul 2004
Location: Omaha
Posts: 2,717
brian.mark RepRank 2brian.mark RepRank 2
Default That makes 2 of us.

I don't know php at all either. Just thought I'd throw out the Apache option as well. IISRewrite does basically the same thing.

Just be careful that you don't link to the files both ways. That'll create duplicate content quicker than you can say "Filtered".

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
  #6 (permalink)  
Old 06-20-2005, 01:20 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

Is this what you mean?

http://www.hibiscusflorals.com/Silk_...ection_104.htm

If so, it's actually a pretty easy thing to do within IIS and ASP. What you do is you set up a custom 404 page to handle your dead link requests, and parse the URL information. In this case, the URL is checked for the product itself (Peonies & Cymbidium Orchids Collection) and the corresponding product detail is shown.

Note: the reason it says "andsign" in the URL is because I've found that the custom 404 doesn't handle & signs very well, and this is my own hack for it.

The only downside to this route is that in stats compilers, it shows /404.asp as your most common page, which is kind of misleading. But then again, so are "products.asp" and "productdetails.asp" so I guess it's six of one, a half dozen of the other.

http://www.4guysfromrolla.com/webtech/123000-1.shtml is where I learned about this concept for the first time. The only weak spot in the article is that the Response.Redirect command causes another call to the server. Use Server.Transfer and session variables instead of Response.Redirect and querystrings. It's much more search-engine and resource-friendly.

Note: you'll have to ask your host if they offer this. If not, there are a bunch that will including Sectorlink (on their Multi-Bronze and higher packages) and *BLECH* Interland, although I'm not sure which package because I haven't used them in 2 years.
Reply With Quote
  #7 (permalink)  
Old 06-20-2005, 01:55 AM
No Clue's Avatar
WebProWorld Member
 

Join Date: Dec 2004
Location: Houston, TX
Posts: 61
No Clue RepRank 0
Default

thanks a lot adam. that's exactlly what I've been looking for. but I guess I'm going to have problem with my host about this. I'm with 1and1 atm, and I'm pretty happy with the service. but I guess I'll move on if I have to.
Reply With Quote
  #8 (permalink)  
Old 06-20-2005, 09:58 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

That's hard to say. A lot of hosts don't specifically mention custom 404s (or 500s either, for that matter) but if you ask them nicely, they'll often do it. It's only a two-minute adjustment in IIS for them anyway.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , , , ,



Thread Tools
Display Modes

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

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


Search Engine Optimization by vBSEO 3.2.0