RewriteRule just forward to subdirectory

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 4
Joined: 28 Jun 2012, 07:13

RewriteRule just forward to subdirectory

28 Jun 2012, 07:17

Hello,

i easily want to do a forward from the rrot to the subdirectory of wordpress.
I have installed v3 on Win2k8R2 and IIS7.5

In the root I placed the followin content into a htaccess file:

RewriteEngine On
RewriteRule ^$ /wordpress [L]

I do not know nothing abour rewriting..obviously it is wrong...
aim:
http://www.mydomain.de should be loading
http://www.mydomain.de/wordpress


Help is appreciated :-(

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: RewriteRule just forward to subdirectory

28 Jun 2012, 07:27

Hello,

The rule is correct, basically.You may also try the following:


Code: Select all
RewriteEngine On
RewriteBase /

RewriteRule ^$ /wordpress [NC,L]


In case it doesn't work, please, provide error.log and rewrite.log for the testing request.
Logging issues described in FAQ

Regards
Andrew

User avatar
Posts: 4
Joined: 28 Jun 2012, 07:13

Re: RewriteRule just forward to subdirectory

28 Jun 2012, 08:06

DOes not work,
no log written, just trying to find out where the problem is :-(
Granted everyone permission. IIS 7.5. does not have a "green Arrow up" to see its working..
nevertheless it is assigned to the plesk user...

User avatar
Posts: 4
Joined: 28 Jun 2012, 07:13

Re: RewriteRule just forward to subdirectory

28 Jun 2012, 08:09

correction:
error.log is now showing:

[28.06.2012 13:05:23] ISAPI Filter loaded. Version 3.1.0.89. Windows 6.1 (Build 7601 ServicePack:1) ProductType SERVER. CPU type INTEL NumberOfProcessors 4.


Probably something else wrong from my understanding:
THe code is placed in a .htaccess file in the root of the specified domain.

Is there another place to store this in?
Do i have to "announce" Isapi to use htaccess mode?

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: RewriteRule just forward to subdirectory

28 Jun 2012, 08:22

Provide NTFS permissions for everyone for both root of the site and the installation folder of ISAPI_Rewrite(sometimes we simply delete plesk users from a list of restrictive users in NTFS properties).

The location of the rules is correct, although the absence of green arrow indicates that isapi_rewrite .dll file has not been loaded properly.
Please, see the following to resolve permissions issues - here

Regards
Andrew

User avatar
Posts: 4
Joined: 28 Jun 2012, 07:13

Re: RewriteRule just forward to subdirectory

28 Jun 2012, 08:42

IIS_WPG group is member.

The site user does not have a dedicated plesk pool.
Does not the line in the error.log indicates that "ISAPI Filter..." is "...loaded"?
I do really not know where "green arrows" should be..there is no place to show them?

NTFS Permission on the root of the website for everyone?!
For testing or do you expect to "opeN" the site in general.

re-applying permission to program directory weems to work.

will perform some testing.
Thanks so far.

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: RewriteRule just forward to subdirectory

28 Jun 2012, 08:54

Permissions has always contained some "magic" with overwriting and inheriting, so we always try to eliminate that first when PLESK is involved.
Well, permissions for everyone - just for testing, to prove it's permissions, not something else. Just to overwrite PLESK users with their permissions.

Look forward hearing from you.


Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 27 guests