Print Page | Close Window

search engine friendly URL

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz NewsPad
Forum Description: Support forum for the Web Wiz NewsPad application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=24955
Printed Date: 28 March 2026 at 2:24am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: search engine friendly URL
Posted By: net55
Subject: search engine friendly URL
Date Posted: 06 December 2007 at 6:59pm
Instead of:
http://www.Domain.com/newsletter.asp?article=37

It would much better to have:

http://www.Domain.com/newsletter/article-37.asp

Any chance this can option can be added?



Replies:
Posted By: WebWiz-Bruce
Date Posted: 06 December 2007 at 7:16pm
This can not be done in ASP without the aid of components.

Have a look at the ISAPI Rewrite component, it should be able to re-write the URL's to nice HTML ones with the present version of NewsPad without any tweaking.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: mysavings.com
Date Posted: 31 January 2008 at 9:15pm

You could actually do it without the use of components in .asp.  I've done this before with another application.  Create a script to make 1000 asp pages.  Call them:

article-1.asp
article-2.asp
article-3.asp
 
The contents of each files can just be an include statement to include newsletter.asp
 
Or to keep it clean (And to keep the 1000 asp files out of your main directory you could do:
/article/1.asp
/article/2.asp
/article/3.asp
 
To pass the article ID, you could either write a little bit of code to set a global variable, or what I did as just continue to pass in the querystring (i.e. /article/1.asp?article=1).  And even if the search engines ignore the ?article=1, they do recognize that each is a different .asp, which may be beneficial over just article.asp?article=1
 
 


Posted By: Scotty32
Date Posted: 31 January 2008 at 9:49pm
on the above you could just use http://www.s2h.co.uk/asp/reference/request/servervariables.asp - Server Variables to get the page name like so:

intArticleID = Replace(Replace(Request.ServerVariables(server_variable),"/article/",""),".asp","")


Which would eliminate the need for querystrings.... the whole point of having the pages.



If you can have Custom 404 pages, you could also look at grabbing the name of the page and checking its in the folder "/articles/" (which wouldnt exisit), if it is, return the article, if not "/articles/" then return a 404 page.


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: angkorboy
Date Posted: 26 February 2009 at 9:44am
Originally posted by net55 net55 wrote:

Instead of:
http://www.Domain.com/newsletter.asp?article=37

It would much better to have:

http://www.Domain.com/newsletter/article-37.asp

Any chance this can option can be added?
 
Actually You can acheive this friendly url. by using 404 Custom Error Code. Then you will convert event with Title of Page http://www.cambodia-tourism.org/news/" rel="no follow - www.cambodia-tourism.org/news/ alot of more technique i can done in example. Tongue


-------------
Tourism of Cambodia - http://www.cambodia-tourism.org" rel="nofollow - http://www.cambodia-tourism.org
http://www.cambodiagateway.com" rel="nofollow - CambodiaGateway - Cambodia Classified



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net