This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Navigation Problem
Author
Message |
mercedes
Newbie


Joined: 30 November 2007
Location: United States
Posts: 32
Posted: 29 December 2011 at 2:36pm

Hello Anton,

   Let me explain what is happening... My webpages all use a (Usercontrol which is CDIHeaderMenu.ascx) and is
connected to with all my .aspx webpages

Inside this CDIHeaderMenu.ascx I have a

Response.Redirect("Webpages/Search/CarSearch.aspx")
____________________________________________________________________

Now all my (.aspx) Webpages.aspx are located here:
The Full Url is: www.autoland.com/autoland/webpages/allmyWebpageshere.aspx

When I run the the following code below:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?!.*\.(?:js|jpg|png|gif|swf|xml|mp3|asx|ascx))CD/(.*)$ Webpages/$1.aspx [NC,L,QSA]

RewriteRule ^(?!.*\.ascx)CD/(.*) Webpages/$1 [NC,L]
RewriteRule ^(?!.*\.asx)CD/(.*) Webpages/$1 [NC,L]
RewriteRule ^(?!.*\.mp3)CD/(.*) Webpages/$1 [NC,L]
RewriteRule ^(?!.*\.xml)CD/(.*) Webpages/$1 [NC,L]
RewriteRule ^(?!.*\.swf)CD/(.*) Webpages/$1 [NC,L]
RewriteRule ^(?!.*\.gif)CD/(.*) Webpages/$1 [NC,L]
RewriteRule ^(?!.*\.png)CD/(.*) Webpages/$1 [NC,L]
RewriteRule ^(?!.*\.jpg)CD/(.*) Webpages/$1 [NC,L]
RewriteRule ^(?!.*\.js)CD/(.*) Webpages/$1 [NC,L]


The result is: www.autoland.com/cd/allmyWebpageshere
 
This is fine except I noticed that I am UNABLE to navigate to a different page using my (Search text Usercontrol)

located at the top of the webpage. I click on the Search Button and Nothing happens. I'm not sure how to solve

this problem???

So I was thinking maybe if you could make CarSearch.aspx and CDIHeaderMenu.ascx exempt from isapi 3.1.0.34 rules

- to see if that might work???

I already tried this but that didn't work -->  RewriteRule ^(?!CarSeach)(.+)\.aspx$ $1 [NC,R=301]

So I not sure what to do??? Can you please help!!! Thank You...
____________________________________________________________________

   How can you make CarSearch.aspx exempt from isapi 3.1.0.34 rules 
   How can you make CDIHeaderMenu.ascx exempt from isapi 3.1.0.34 rules

Here is the location of CarSearch.aspx file
The Full url is: ---> www.autoland.com/autoland/webpages/Search/CarSearch.aspx

Here are the locations of CDIHeaderMenu.ascx file
The Full url is: ---> www.autoland.com/autoland/webpages/Search/Controls/CDIHeaderMenu.ascx
The Full url is: ---> www.autoland.com/autoland/webpages/Controls/CDIHeaderMenu.ascx
The Full url is: ---> www.autoland.com/autoland/Controls/CDIHeaderMenu.ascx
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 03 January 2012 at 4:51am

First, I've noticed that you are using rather old build of ISAPI_Rewrite, so please consider updating (this doesn't relate to the issue).

"How can you make CarSearch.aspx exempt from isapi 3.1.0.34 rules
How can you make CDIHeaderMenu.ascx exempt from isapi 3.1.0.34 rules"
- please try this line:

RewriteRule ^(?!.*(?:CarSearch.aspx|CDIHeaderMenu.ascx)).+$ - [NC,L]

Also please try to add the following piece:

RewriteCond %{HTTP_METHOD} POST
RewriteRule .? - [L]

__________________
Regards,
Anton
Back to Top
 
mercedes
Newbie


Joined: 30 November 2007
Location: United States
Posts: 32
Posted: 03 January 2012 at 11:03am

Hi Anton,

I tried this:  

RewriteCond %{HTTP_METHOD} POST
RewriteRule ^(?!.*(?:CarSearch.aspx|CDIHeaderMenu.ascx)).+$ - [NC,L]

And the .aspx pages render but the (Pages Usercontrol) still does not work...

____________________________________________________________________

When I tried


RewriteCond %{HTTP_METHOD} POST
RewriteRule ^(?!.*(?:CarSearch.aspx|CDIHeaderMenu.ascx)).+$ - [NC,L]
RewriteRule .? - [L]

(or)

RewriteCond %{HTTP_METHOD} POST
RewriteRule .? - [L]
RewriteRule ^(?!.*(?:CarSearch.aspx|CDIHeaderMenu.ascx)).+$ - [NC,L]

I received an error message --- Page can not be found...

_____________________________________________________________________

It seems that when the .aspx pages render without the .aspx extension that
it diables the pages UserControl ability to cummunicate and function...
Back to Top
 

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

Printable version Printable version