| Author |
|
aaronfrankel Newbie

Joined: 05 August 2008 Location: United States
Online Status: Offline Posts: 10
|
| Posted: 05 August 2008 at 12:45pm | IP Logged
|
|
|
Brand new to IIS and ISAPI Rewrite. Running on a Dedicated Windows Server 2003 SP2, IIS 6 Single (Default) Web Site installed, ASP.Net 2.0 -installed ISASPI rewrite to the IIS server- BTW I am a Mac guy. So please excuse any MS ignorance in advance.
The issue I am having. Zero response no matter how I write the statement. I copied this one from one of the other posts on here about 301 Redirects, but it still did not work. NOTHING. And I have a whole bunch of these I have to write. 
Here are the complete contents of my .htaccess file.
Quote:
RewriteEngine ON RewriteCond Host: www\.site\.com RewriteRule /([^?.]+)/index\.php http\://www.site.com/Default.asp$1/ [I,RP]
|
|
|
Edited by aaronfrankel - 05 August 2008 at 12:46pm
__________________ I miss Apache/Cpanel
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 4837
|
| Posted: 06 August 2008 at 3:31am | IP Logged
|
|
|
Seems that you are using v3 and the config is written for v2. So please try to modify your config like this (.htaccess should reside in the root of your www.site.com):
RewriteEngine On RewriteBase / RewriteRule ^([^?.]+)/index\.php$ Default.asp/$1 [NC,R=301]
__________________ Regards,
Anton
|
| Back to Top |
|
| |
aaronfrankel Newbie

Joined: 05 August 2008 Location: United States
Online Status: Offline Posts: 10
|
| Posted: 06 August 2008 at 11:19am | IP Logged
|
|
|
No luck.
.htaccess does reside in the root
Quote:
RewriteEngine On RewriteBase / RewriteRule ^([^?.]+)/index\.php$ Default.asp/$1 [NC,R=301]
|
|
|
__________________ I miss Apache/Cpanel
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 4837
|
| Posted: 07 August 2008 at 4:27am | IP Logged
|
|
|
Please put the following directive into httpd.conf to enable logging: RewriteLogLevel 9 And provide rewrite log records for some specific request.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
aaronfrankel Newbie

Joined: 05 August 2008 Location: United States
Online Status: Offline Posts: 10
|
| Posted: 07 August 2008 at 5:53pm | IP Logged
|
|
|
192.168.1.23 192.168.1.23 Thu, 07-Aug-2008 17:28:37 GMT [www.frankelcostume.com/sid#1][rid#20001344/initial] (2) init rewrite engine with requested uri /Admin/Products/EditProductCategories.aspx 192.168.1.23 192.168.1.23 Thu, 07-Aug-2008 17:28:37 GMT [www.frankelcostume.com/sid#1][rid#20001344/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf 192.168.1.23 192.168.1.23 Thu, 07-Aug-2008 17:28:37 GMT [www.frankelcostume.com/sid#1][rid#20001344/initial] (1) Htaccess process request e:\ablecommerce\.htaccess 192.168.1.23 192.168.1.23 Thu, 07-Aug-2008 17:28:37 GMT [www.frankelcostume.com/sid#1][rid#20001344/initial] (3) applying pattern '^([^?.]+)/index\.php$' to uri 'Admin/Products/EditProductCategories.aspx'
Also, posting an image if this helps at all.

Edited by aaronfrankel - 07 August 2008 at 5:59pm
__________________ I miss Apache/Cpanel
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 4837
|
| Posted: 08 August 2008 at 4:22am | IP Logged
|
|
|
Well, according to what you have provided you are requesting /Admin/Products/EditProductCategories.aspx and your rule is designed to match smth/index.php, consequently you get nothing. Please give some specific examples of what do you want to rewrite and how, and we'll help you with the rules.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
aaronfrankel Newbie

Joined: 05 August 2008 Location: United States
Online Status: Offline Posts: 10
|
| Posted: 08 August 2008 at 7:18am | IP Logged
|
|
|
I saw that. Really strange.
I am trying to get /index.php to resolve to /Default.aspx
__________________ I miss Apache/Cpanel
|
| Back to Top |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 4837
|
| Posted: 11 August 2008 at 2:59am | IP Logged
|
|
|
Please make sure you have ISAPI_Rewrite installed only on global level (not on site level), please also provide more rewrite logs and IIS logs. Check if you don't have any other ISAPI filters running.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
aaronfrankel Newbie

Joined: 05 August 2008 Location: United States
Online Status: Offline Posts: 10
|
| Posted: 13 August 2008 at 4:30pm | IP Logged
|
|
|
Found the issue. Every thing was right except the forward slash in front of index.php is guess because of RewriteBase / ?
__________________ I miss Apache/Cpanel
|
| Back to Top |
|
| |