a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

I want my cake and eat it too!

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> I want my cake and eat it too!
Page: [1]
 
hzarabet

 

Posts: 1540
From: New Milford CT USA
Status: offline

 
I want my cake and eat it too! - 8/11/2001 13:36:00   
I am 99% sure this can't be done...but then again on this board you find out the strangest stuff.

I have a fully databased website where I list events for promoters. So now, to go to a particular promoters event, a user has to go to my home page, click on the search page, then use the drop down menu for the promoter and submit. Standard stuff. I came up with the idea of using redirect pages where I give the promoter their own link so the user can type in the direct URL of his/her favorite promoter and then be redirected right to their listings. Example:

http://www.signingshotline.com/OUTFRONT.asp

This not only helps the promoter, but now the promoter will advertise this link in his ads. FREE PROMOTION FOR ME!!!

Now here is the question. I am going to be placing hundreds of redirect pages under my root. VERY MESSY!!! I don't want to place them in a folder under the root because that would make the link name more confusing for the user (K.I.S.S.). I don't want to place an _ at the start of the page name because 99% of the users would never put that in the URL.

So, is there anyway to keep my website contents neat and orderly under my parameters?

I don't think so, but like I said, this board has some done some crazy stuff!

Thanks all,

Howard

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada

Spooky

 

Posts: 26618
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: I want my cake and eat it too! - 8/11/2001 17:38:00   

Something like this?

------------------
§þððk¥
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!
VP-ASP Shopping cart


(in reply to hzarabet)
hzarabet

 

Posts: 1540
From: New Milford CT USA
Status: offline

 
RE: I want my cake and eat it too! - 8/11/2001 18:11:00   
Hi Spooky,

Well, not really. This doesn't do much good when the promoter wants to advertise that his events can be accessed directly at
http://www.signingshotline.com/OUTFRONT.asp
Your idea is good for emails, etc.

Thanks

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Spooky

 

Posts: 26618
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: I want my cake and eat it too! - 8/12/2001 20:51:00   
As close as youll get (dynamic anyway) would be the type of link I mentioned.

To name a specific page after a promoter, itll have to exist.
Using a querystring like I have is about the only real option I think (for a lot of promoters)

------------------
§þððk¥
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!
VP-ASP Shopping cart


(in reply to hzarabet)
abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: I want my cake and eat it too! - 8/12/2001 20:25:00   
I have done somthing very similar at a site. I thought about it for ages and tried to figure something pretty out but in the end went for a directory rather than have a really messy root web.


I just called the directory a very easy to recall name - actually I called it 'go' - so you would get http://www.signingshotline.com/go/OUTFRONT.asp

The people using it do not seem to have a problem with it, it is easy to remember and I think it is a lot better than having my head done in every time I looked at a root web with a zillion pages scattered around it.

------------------
Katherine

InKK Design
LinKKs - Kilkenny's Online Magazine


-*-*-*-*-*-*-*-*-*-*
"Dogs have owners, cats have staff!"


(in reply to hzarabet)
hzarabet

 

Posts: 1540
From: New Milford CT USA
Status: offline

 
RE: I want my cake and eat it too! - 8/12/2001 23:18:00   
Katherine, you confirmed what I suspected. It boils down to how much faith I have in my viewers. I really wanted to make it as simple as possible. Either I make it simpler for my viewers or simpler for me!

And BTW, the redirect page has the query string in it to pull up the database info.

Thanks Spooky and Katherine for your advice.

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Mojo

 

Posts: 2443
From: Chicago
Status: offline

 
RE: I want my cake and eat it too! - 8/12/2001 15:22:00   
Howard,

I hope I understood your question. This technique allows you to give out custom address to your clients without having to create individual pages and without having to clutter up your web root. I was looking to play on the server today and this gave me an assignment of sorts.

Here is how I did what you are asking.

I am using ASP and IIS.

I made a custom 404 Error (file not found) page. The client would type in www.yoursite.com/outfront.asp (or .htm). Since the file does not exist (this only works if the filename they are typing does not exist) the custom error page is served.

I then used ASP (you could use JavaScript) to identify the intended page and redirect accordingly. Here is the code for the custom 404 Error page:

<%
clientID = Mid(lcase(Request.Querystring), 5)
SELECT CASE clientID
CASE "http://63.126.0.253/outfront.asp"
response.write "Outfront"
CASE "http://63.126.0.253/4guysfromrolla.asp"
response.write "4GUYS"
CASE ELSE
response.write "redirect to you regular 404 error page"
END SELECT
%>

I used response.write because I was too lazy to make the additional pages. Just change that to response.redirect and then the address with any additional variables attached (page.asp?var=outfront).

Also, I used the Mid function of VBScript to parse the URL. That may or may not need to be changed slightly depending on your server.

Joe


[This message has been edited by jbennett (edited 08-12-2001).]


(in reply to hzarabet)
hzarabet

 

Posts: 1540
From: New Milford CT USA
Status: offline

 
RE: I want my cake and eat it too! - 8/12/2001 15:42:00   
I KNEW one of you brainiacs would come up with something CRAZY!!!

Now, Joe, don't forget you're speaking to hzarabet, not Spooky! I am fine with about 80% of your (amazing) idea.

1. How do I set up a custom 404 page? I am hosted. Do I need to call my host?

2. What does the 5 in

Mid(lcase(Request.Querystring), 5)

represent in my case statement? Why is not just Request.Querystring?

Thanks again Joe,

Howard


------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada

[This message has been edited by hzarabet (edited 08-12-2001).]


(in reply to hzarabet)
Mojo

 

Posts: 2443
From: Chicago
Status: offline

 
RE: I want my cake and eat it too! - 8/12/2001 16:47:00   
I guess first you have to find out if your host allows you to have custom errors pages. Some do, some don't. It may not be a problem. If you are on a dedicated server it is zero problem. Here is a link that will walk you through a custom error page (IIS):

http://www.4guysfromrolla.com/webtech/061499-1.shtml

Your question about the querystring:
I used 5 in the Mid function to grab just the URL. You could leave it in and just adjust the CASE. This is the querystring before I parse it:

code:
http://63.126.0.253/customerRedirect.asp?404;http://63.126.0.253/outfront.asp

Using Mid I just grabbed the url after 404;.

Joe


(in reply to hzarabet)
Spooky

 

Posts: 26618
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: I want my cake and eat it too! - 8/12/2001 16:52:00   

(in reply to hzarabet)
hzarabet

 

Posts: 1540
From: New Milford CT USA
Status: offline

 
RE: I want my cake and eat it too! - 8/12/2001 21:14:00   
Joe, you did. It works! But I am not going to let you off the hook until I understand why it is "5" in

Mid(lcase(Request.Querystring), 5)

My understanding of the "5" in this case would mean that the querystring is being read beginning with the 5th character. That would make my querystring would begin with the ":" after the http. What am I misunderstanding?

This board amazes me.

Howard

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Mojo

 

Posts: 2443
From: Chicago
Status: offline

 
RE: I want my cake and eat it too! - 8/12/2001 23:19:00   
Howard,

I am glad you got it working.
As far as ASP is concerned, the "querystring" does not begin until after the "?" in the URL. That 5 in Mid would give you the "h" in http after the "?".

Joe


(in reply to hzarabet)
hzarabet

 

Posts: 1540
From: New Milford CT USA
Status: offline

 
RE: I want my cake and eat it too! - 8/13/2001 20:19:00   
Thanks Joe...actually, I did know that, I had brain lockup!

Now for the finishing touch on this. What if I only want the portion "outfront" to be read from the string? Don't forget, "outfront" would be different promoter names of different lengths. I'd want to remove the left 25 characters and the right 4 :

http://63.126.0.253/customerRedirect.asp?404;http://63.126.0.253/outfront.asp

It would be something like the combo of:

Mid(lcase(Request.Querystring), 25)

PLUS

Rtrim(lcase(Request.Querystring),4)

Thanks again Joe (et. al.)

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Mojo

 

Posts: 2443
From: Chicago
Status: offline

 
RE: I want my cake and eat it too! - 8/13/2001 20:01:00   
You could do that, or add "outfront" to your redirect page:
Response.Redirect "page.asp?ID=outfront"

Joe


(in reply to hzarabet)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> I want my cake and eat it too!
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts