Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: url rewrite problem with ajax Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
bewise
Newbie
Newbie


Joined: 28 May 2008
Online Status: Offline
Posts: 7
Posted: 16 July 2008 at 4:57pm | IP Logged Quote bewise

Hello all,

I am using helicon url rewrite (a htaccess file) in order to redrect a .aspx file to another .aspx file.

e.g.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.co.uk
RewriteRule (.*) http://www.example.co.uk/$1 [R=301,L]
RewriteRule ^([A-Za-z0-9-]+).aspx$ default.aspx?pagename=$1

to redirect

www.example.co.uk/text.aspx -> www.example.co.uk/default.aspx?pagename=text

However when this rewrite rule is added to the file, It will stop my ajax update panel from working?

Is there any other rewirte rule that I can use that will enable me to redirect a .aspx file to another .aspx file without affecting my ajax code?

Back to Top View bewise's Profile Search for other posts by bewise
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 350
Posted: 17 July 2008 at 1:17am | IP Logged Quote Vyacheslav

Hi bewise!

Please try this solution:
Code:
RewriteBase /
RewriteRule ^(\w+)\.aspx$ default.aspx?pagename=$1 [NC,R=301]


__________________
Kind regards!
Vyacheslav.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav'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