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: no error, no rewrite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
kitster
Newbie
Newbie


Joined: 24 July 2008
Online Status: Offline
Posts: 2
Posted: 24 July 2008 at 1:23pm | IP Logged Quote kitster

hi there.

i downloaded lite and got things working on our development server, but the client needs the full version.  i've downloaded that, installed it, checked the ntfs permissions, and the error logs are created, but empty.

i'm having a lot of trouble understanding how this works.  the server has many domains running on it, this is needed for only one.  that domain has several sites running off subdirectories (www.abc.com/london, www.abc.com/perth, www.abc.com/newyork).  i need this to work for one of these subdirectories.

so, through the helicon manager, do i create a .htaccess file in the appropriate directory?  this is what i've done so far in the london subdirectory:

RewriteEngine on
RewriteBase /london/

# Defend your computer from some worm attacks
RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]

# Rewrite keyword-rich URLs
RewriteRule ^article/.*\w/.*\w/([0-9]+)\.html$ /london/news_article.asp?Article=$1 [NC,L]

if my rule is correct, it should interpret www.abc.com/london/article/woo/hoo/56.html to www.abc.com/london/news_article.asp?Article=56

as i said, nothing in the error logs, just a flat 404.

help please!!

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


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

Hi kitster.
Sorry, but in Lite version you can declare the rules only in httpd.conf file!
Also, if you want to get log-files, then please write these strings in your httpd.conf:
Code:
RewriteLogLevel 9
LogLevel debug


__________________
Kind regards!
Vyacheslav.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
kitster
Newbie
Newbie


Joined: 24 July 2008
Online Status: Offline
Posts: 2
Posted: 25 July 2008 at 2:27am | IP Logged Quote kitster

I'm not using the Lite version, I am using ISAPI_Rewrite 3.0!

In the end I've managed to sort it out.  I added the debugging code to the httpd.conf file, and moved the .htaccess file to the root of the domain, modifying the regex to allow for that.

I notice in the Rewrite.log that its trying to apply the rules to every file request, including images and style sheets etc.  Is there any way of cutting down on the processing and only applying it to asp and html files?
Back to Top View kitster's Profile Search for other posts by kitster
 
Vyacheslav
Moderator Group
Moderator Group


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

Hi kitster.
Please try this solution:
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? -


__________________
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