Topic: no error, no rewrite
|

|
| Author |
|
kitster Newbie

Joined: 24 July 2008
Online Status: Offline Posts: 2
|
| Posted: 24 July 2008 at 1:23pm | IP Logged
|
|
|
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 |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 350
|
| Posted: 24 July 2008 at 1:56pm | IP Logged
|
|
|
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 |
|
| |
kitster Newbie

Joined: 24 July 2008
Online Status: Offline Posts: 2
|
| Posted: 25 July 2008 at 2:27am | IP Logged
|
|
|
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 |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 350
|
| Posted: 25 July 2008 at 3:22am | IP Logged
|
|
|
Hi kitster.
Please try this solution:
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? -
|
|
|
__________________ Kind regards!
Vyacheslav.
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
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
|