Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3941310
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:31:33+00:00 2026-05-20T00:31:33+00:00

update Here is the situation: I’m working on a website that has no physical

  • 0

update

enter image description here

Here is the situation:

I’m working on a website that has no physical folder structure. Nothing had been planned or controlled and there were about 4 consecutive webmasters.

Here is an example of an especially ugly directory

  • \new\new\pasite-new.asp

most pages are stored in a folder with the same name as the file, for maximum redundancy.

  • \New\10cap\pasite-10cap.asp
  • \QL\Address\PAsite-Address.asp

each of these [page directories]? (I don’t know what else to call them) has an include folder, the include folder contains the same *.inc files in every case, just copied about 162 times for each page directory. The include folder was duplicated so that the
<!--#include file="urlstring"--> would work correctly due to lack of understanding of relative paths, and the #inclue virtual directive or using server.execute()

Here is a picture if my explanation was lacking.

directory structure


Here are some of my limitations:

  • The site is written in ASP classic
  • Server is Windows Server 2003 R2 SP2 , IIS 6 (According to my resource)
  • I have no access to the IIS server
  • I would have to go through a process to add any modules or features to iis

What changes can I make that would allow me to move pages around and rename them while not breaking incoming links from external sites that still use the poorly formed URLs?

To make my question more specific.

How can I move the file 10cap.asp from \new\10cap\ to a better location like \ and rename the file to someting like saveourhomescap.asp and not break any incoming links and finally, not have to leave a dummy 10cap.asp page in the original location with a redirect to the new page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:31:33+00:00Added an answer on May 20, 2026 at 12:31 am

    Well, you have a lot of limitations and especially no access to the IIS server hurts. An ISAPI module for URL rewriting is not an option here (IIS) and equally a custom 404 page where you could read the referer and forward with a HTTP 301 won’t work (IIS).

    I would actually recommend you to go through the process and let them install:

    • An ISAPI URL rewriting module

    or if that doesn’t work (for any reason):

    • Let them point the HTTP 404 of your web to a custom 404.asp, read the referer and redirect with a HTTP 301 (Moved Permanently) to your new location.

    If none of this is an option for you, I can think about another possibility. I haven’t actually tried that so I’m not 100% sure if it will work, but in theory it sounds good 😉

    You could make in your global.asa in the Session_OnStart event a Response.Redirect or change the header of your response to a HTTP 301. This will actually only work for new users and not fix real 404 errors. Sorry, for the pseudo code, but it’s a while ago that I had anything to do with classic ASP and I think you’ll get what I mean 😉

    sub Session_OnStart
    
        ' here should be a Select Case switch or something like that 
        Response.Redirect("newlocation.asp")
    
        ' or if that will work, this would be better (again with switch)
        Response.Status = "301 Moved Permanently"
        Response.AddHeader "Location", "http://company.com/newlocation.asp"
    
    end sub
    

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update I summarized the question and its answers here My objective is to detect
Replaces Question: Update multiple rows into SQL table Here's a Code Snippet to update
UPDATE - A comprehensive comparison, updated as of February 2015, can be found here:
Update: Thanks for the suggestions guys. After further research, I’ve reformulated the question here:
How do I update a Gridview on a aspx page from a webmethod? Here
we're dealing with a very slow update statement in an Oracle project. Here's a
How can I represent the following in XSD. <price-update> <![CDATA[ arbitrary data goes here
Here is the updated question: the current query is doing something like: $sql1 =
Here is my function ( updated ): Public Shared Function shortenUrl(ByVal URL As String)
I've updated php.ini and moved php_mysql.dll as explained in steps 6 and 8 here.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.