Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rating: Thread Rating: 7 votes, 4.57 average. Display Modes
 
Unread ASP Free Forums Sponsor:
  #16  
Old March 5th, 2007, 01:14 PM
udelojf udelojf is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 4 udelojf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m 12 sec
Reputation Power: 0
Rust Indy, trying to make this work

Rust Indy, thank you for your contribution. I have followed your code below, however, the big question is. How do I produce the 404 from my products page?

How is the 404 being triggered if the path is OK and the application is working. In order for me to trigger the error, I had to trick the page to redirect to a non existing directory, but I have to take that off because it will end up looping around (it was just to test).

Also, the Server.Transfer("/" & MyUrl.url(0) & ".asp?id=" & MyUrl.url(1)) piece of code is coming back with an error. When I print the value of ("/" & MyUrl.url(0) & ".asp?id=" & MyUrl.url(1)) on the browser, it seems like MyUrl.url(1) is empty and MyURL.url(0) holds the old dirty querystring. Isn't this the variable which needs to carry the desired URL output?

I am getting all confused, I have tried several of these sample codes (modified them and all) and they don't work. I am really hesitant to moving to a dedicated server hosting to install ISAPI Rewrite, it is 3 times what I am paying now for my hosting package.

The website I am trying to make URL Frienly is 9searches.org This is a free directory, and it works fine, I just want to make it more SEO friendly. Anyone feel free to post, by the way.


Can anyone help me?

Reply With Quote
  #17  
Old June 14th, 2007, 01:56 PM
mithlesh1 mithlesh1 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 2 mithlesh1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 14 m 15 sec
Reputation Power: 0
remove query string from url

Hi

i want to remove querystring from url.how it possible.plz mail
me details with example.how it used.


mithlesh

Reply With Quote
  #18  
Old June 15th, 2007, 01:38 PM
aish1108 aish1108 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 2 aish1108 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 13 m 6 sec
Reputation Power: 0
But what about the Search Engines

Isn’t the reason why most webmaster want to strip the querystring from a dynamic URL for search engine optimization purposes? If so, how will messing around with error codes help.

It sounds like the solution is a whole lot worse then just leaving the querystrings as is. I have found that Google indexes dynamic pages very well. It’s only Yahoo and MSN who don’t do as good a job.

What I need is a solution which can be used on a shared hosting plan where I have no access to IIS server.
If anyone has a solution for me please let me know.

Reply With Quote
  #19  
Old June 18th, 2007, 10:53 AM
degsy degsy is offline
Contributing User
ASP Free God 2nd Plane (6000 - 6499 posts)
 
Join Date: Aug 2005
Location: North East, UK
Posts: 6,191 degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 41 m 52 sec
Reputation Power: 122
See if the webserver contains or if you can purchase a dedicated URL Rewrite component

e.g.
For IIS you could use ISAPIRewrite
For *nix Apache you could use Mod_Rewrite
__________________
CyberTechHelp

Reply With Quote
  #20  
Old June 19th, 2007, 08:58 AM
aish1108 aish1108 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 2 aish1108 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 13 m 6 sec
Reputation Power: 0
Shared Hosting Plan

Quote:
Originally Posted by degsy
See if the webserver contains or if you can purchase a dedicated URL Rewrite component

e.g.
For IIS you could use ISAPIRewrite
For *nix Apache you could use Mod_Rewrite


I have looked around but I've had no luck finding a Shared Hosting package which offers ISAPIRewrite.

If any one knows of one please share it!

Thanks

Reply With Quote
  #21  
Old July 10th, 2007, 01:52 PM
sebs sebs is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 135 sebs User rank is Sergeant (500 - 2000 Reputation Level)sebs User rank is Sergeant (500 - 2000 Reputation Level)sebs User rank is Sergeant (500 - 2000 Reputation Level)sebs User rank is Sergeant (500 - 2000 Reputation Level)sebs User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 48 sec
Reputation Power: 14
Here's my workaround since Server.Transfer doesn't support querystring using Rust Indy's class:

Code:
<%
Set MyUrl = New URL

Dim intNumOfDir:		intNumOfDir			= MyUrl.count

Select Case intNumOfDir
	Case 5:
		strNewURL = "/" & MyUrl.url(0) & "/" & MyUrl.url(1) & "/displaycategory.asp"
End Select

Set objXML=Server.CreateObject("Msxml2.ServerXMLHTTP")
	objXML.Open "POST", "www.mywebsite.com" & strNewURL, False
	objXML.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
	objXML.Send "ID=" & MyUrl.url(3)
	
	strHTML = objXML.ResponseText
Set objXML = Nothing

Response.Status = "200 OK"
Response.Write strHTML
Response.End
%>


Still a work in progress and your landing page cannot use querystring anymore since it's posting to it, so if it's an existing application, changes will be needed.

Reply With Quote
  #22  
Old August 11th, 2007, 07:30 AM
akumar8_k akumar8_k is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 14 akumar8_k Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 3 h 20 m 4 sec
Reputation Power: 0
Hi,
Above example is very useful whenever we change in custom error page.But i want without change the custom error page how to re write the url in classic asp.
Please send reply to me.

Thanks.
Kumar.A

Reply With Quote
  #23  
Old August 4th, 2009, 03:22 AM
kimphucthinh kimphucthinh is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 1 kimphucthinh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 8 sec
Reputation Power: 0
help me

rewrite.asp line 12 error

sTemp = Right(sTemp, len(sTemp) - 4)


???

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > URL Rewriting with ASP/IIS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
Stay green...Green IT