Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - search engine friendly URL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Lockedsearch engine friendly URL

 Post Reply Post Reply
Author
net55 View Drop Down
Newbie
Newbie
Avatar

Joined: 29 November 2002
Location: United States
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote net55 Quote  Post ReplyReply Direct Link To This Post Topic: search engine friendly URL
    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?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
mysavings.com View Drop Down
Newbie
Newbie


Joined: 24 January 2008
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote mysavings.com Quote  Post ReplyReply Direct Link To This Post 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
 
 
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2008 at 9:49pm
on the above you could just use 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
angkorboy View Drop Down
Newbie
Newbie
Avatar

Joined: 02 September 2005
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote angkorboy Quote  Post ReplyReply Direct Link To This Post 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 www.cambodia-tourism.org/news/ alot of more technique i can done in example. Tongue
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.