Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: switching from .aspx to .html extension Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
stevel
Newbie
Newbie


Joined: 19 March 2008
Location: United States
Online Status: Offline
Posts: 4
Posted: 20 March 2008 at 11:59am | IP Logged Quote stevel

Hi,

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?

Thanks!
Back to Top View stevel's Profile Search for other posts by stevel
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6445
Posted: 21 March 2008 at 6:44am | IP Logged Quote Yaroslav

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

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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