This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: switching from .aspx to .html extension (Topic Closed Topic Closed)
Message |

Joined: 19 March 2008
Location: United States
Posts: 4
Posted: 20 March 2008 at 11:59am  


We're trying to rewrite .html extensions to .aspx using the following rule:

RewriteRule ^([^?]+)\.html$ $1.aspx

This seems to work so long as there is no query string on the .html url.

So Product.html works fine, but Product.html?id=123 doesn't. What should we change about this rule to make query strings work?

Back to Top
Admin Group

Joined: 15 August 2002
Posts: 6520
Posted: 21 March 2008 at 6:44am  

RewriteRule ^([^?]+)\.html(\?.*)? $1.asp$2 [I]

Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum