Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default page for URL pointing to missing folder/file

Status
Not open for further replies.

esteiner

Programmer
Oct 31, 2003
24
0
0
Hello,

We are interested in reducing the amount of space that we use on the web server. We currently have 100,000+ files on the server, one for each part number.

We currently use the following URL format for each file:


We are considering using the following new URL format to reduce the # of files:


We do not plan on creating a folder named "12345". A default "landing page" would be used in the "search" folder that runs a script to extract the part number "12345" and populate a form. We can create this landing page/script ourselves. It is also of course important to us that the search engines recognize this method and include each page in its index.

What changes need to be made on the web server to accomplish this? Any help would be appreciated as we want to reduce bandwidth use and server space.

Best regards,

Charlie
 
There are many ways to do this:

Are you trying to make one page serve the content?
You could use a conditional include.

Are you trying to make a simple url redirect to a longer url?

you could:

If you are removing the shtml pages you Create a 404 page with js like this:

var strReferrer=document.referrer.toLowerCase();
//temporary link
if(location.href.indexOf("pirates")>0)
window.location="
You could put relevant parts of the url in to redirect to the new url


If you ask your question more specifically, we can give you a more specific answer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top