Print Page | Close Window

URL Rewrite

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=26570
Printed Date: 02 April 2026 at 2:16pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: URL Rewrite
Posted By: Wayne G.
Subject: URL Rewrite
Date Posted: 23 November 2008 at 4:31am
Hello:
      Is there a way to rewrite the URL so that the Forum "Topic" or message "Subject" replaces the special characters in the URL?
 
/forum/default.asp?C=1
/forum/forum_topics.asp?FID=1
/forum/forum_posts.asp?TID=1
 
Indexing of the forums would work much better.   This would do wonders in Google. 

Thanks,

Wayne G.
 



Replies:
Posted By: Wayne G.
Date Posted: 03 December 2008 at 3:40pm
Hi Bruce:
   Since there was not a response to this I assume it is not included functionallity.  Can this post be moved to " http://forums.webwiz.net/forum_topics.asp?FID=13 - Suggestions for Web Wiz "?
 
Thanks,

Wayne
 
 


Posted By: WebWiz-Bruce
Date Posted: 04 December 2008 at 9:39am
URL rewriting is not something that it built into ASP so can not be added as default.

To do this you need to install the ISAPI_Rewrite component on the web server which you can then setup rules to have the URL rewritten on the fly.


-------------
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: Wayne G.
Date Posted: 05 December 2008 at 2:44pm
Hi Bruce:
   Thanks for your reply.  I am also using a PHP based CMS on a different server that has a box to tick in the admin that will set the ISAPI ReWrite rules if the ISAPI app is installed on the server.  No ISAPI, just untick the box.  This makes it so very easy to use if ISAPI is installed.  No rules to set up, just load ISAPI and tick the box.   Google really likes the ReWrite results.
 
Thanks,

Wayne G.


Posted By: WebWiz-Bruce
Date Posted: 05 December 2008 at 2:48pm
You will find this on a PHP board as Apache has a re-write module built in.

ISAPI-rewrite usually requires a custom solution for your server and very few servers have this installed.

Our own hosted solutions do have the full version of ISAPI_Rewrite installed on our servers.


-------------
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: Wayne G.
Date Posted: 05 December 2008 at 2:52pm
Hi Bruce:
Thanks for the additional clarification.  Does that mean that a built-in ISAPI ReWrite solution would work on your servers or ones configured like yours?
 
Thanks,
 
Wayne G.
 


Posted By: WebWiz-Bruce
Date Posted: 05 December 2008 at 2:59pm
To be able to use ISAPI_Rewrite you need to have the component installed on the server.

We have the paid full version of ISAPI_Rewrite installed on our own servers, but you would need to check with your web host to see if they have this component installed on their servers.

To use ISAPI_Rewrite you need to make a file which contains rules specific to your site and setup. Then when a page is called ISAPI-_Rewrite will change the URL at ISAPI filter level within IIS and issue a 302 redirect to the calling browser so that the URL will be re-written.


-------------
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: Wayne G.
Date Posted: 05 December 2008 at 3:03pm
Hi Bruce:
Could you add the file that contains the rule to the core package and add a tick box in admin to activate if ISAPI is installed?  I do have it on my dedicated windows server.
 
Thanks,

Wayne G.


Posted By: WebWiz-Bruce
Date Posted: 05 December 2008 at 3:15pm
It's not as simple as that.

ISAPI_Rewrite is very difficult to setup and you need to create dozens of rules many of which would need to be customised to your specific setup.

Have a word with them over at ISAPI_Rewrite and ask them to point you in the right direction as they use Web Wiz Forums for their own support forum.


-------------
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: Wayne G.
Date Posted: 05 December 2008 at 3:18pm
Hi Bruce:
  Okay.  Thank you for your consideration and time to explain.
 
Wayne G.
 


Posted By: klr3
Date Posted: 08 December 2008 at 9:54am
Hi!
 
As Borg said, you would have to write alot of rules to cover the whole forum and it´s URL, but to the rules would be quite simple - here is an example for the rewrite of topic display:

RewriteRule ^forum/forum_topics-FID-(\d+)-PN-(\d+)\.html$ forum_topics.asp?FID=$1&PN=$2 [NC,L]
 
The default URL would be: ".../forum/forum-topics.asp?FID=20&PN=1
With URl rewrite the URL would be: ../forum/forum_topisc-FID-20-PN-1.html
 
Although this is simple, you also have to edit the URL´s in the source-code of the forum, as they don´t get rewritten by default, which is quite some work!!!
 
If the purpose is to gain better ranking on searchengins, I surgest to take it even further, and include the name of the topics in the URL!
 
For tips on doing this, you could browse the forum at http://www.helicontech.com/forum/ - http://www.helicontech.com/forum/  (yes, they use Web Wiz Forum Wink)


Posted By: Wayne G.
Date Posted: 09 December 2008 at 7:49am
Hi Kir:
   The intent would be to rewrite the topic into the URL.  Then using the right keywords in the topic would make a gangbuster's URL.  
 
Wayne G.
 


Posted By: Wayne G.
Date Posted: 15 June 2009 at 3:55pm
Hi Bruce:
   Most impressive that you took a suggestion from a post and integrated it into the core version.  I think this will do wonders in the search engines.  Thank you for implementing this feature.  I can't wait to play with it.
 
Wayne G.



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