Topic: Wordpress 2.5 & Rewrite 2.8 on IIS6
|

|
| Author |
|
shawson Newbie

Joined: 07 January 2010
Online Status: Offline Posts: 2
|
| Posted: 07 January 2010 at 11:00am | IP Logged
|
|
|
Hi,
i've been strugglling with this for most of the day so i'm hoping someone here will be able to end my suffering!
We have a website setup which we are moving to our windows 2003 servers in the company- we run IIS6 and have helicon rewrite 2.8. The site has permalinks already setup like so http://www.blah.com/post-name
i want to set the same thing up with helicon, but dont know how to without the rule catching every single file with that one rule.
Obviously in rewrite3 you can do a -f and -d in the regex to make it exclude files which actually exist, but there doesnt seem to be anything similar in prior versions.
Any ideas?
Thanks for reading!
Shaw.
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10489
|
| Posted: 08 January 2010 at 5:54am | IP Logged
|
|
|
You are right - there's no physical file/folder check in v2.
So you may either exclude physical files/folders manually, like this:
RewriteRule /(?!.*(?:folder1|folder2|etc|file.one|file.two|etc).*).* $0 [I,L]
or exclude certain filetypes from being rewritten:
RewriteRule .*\.(?:gif|jpg|png) $0 [I,L]
or consider upgrading to v3 and using its benefits.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
shawson Newbie

Joined: 07 January 2010
Online Status: Offline Posts: 2
|
| Posted: 08 January 2010 at 6:14am | IP Logged
|
|
|
Hi Anton,
thanks for the advice- i'll give those rules a go. I would love to upgrade to v3, we already have on another server but we have about a dozen big sites already running with v2, and with the rewrite file syntax changing just enough to break v2 rewrite files, porting their httpd.ini files over would be a fair job in itself.
Thanks again for your prompt reply!
|
| 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
|