This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: wordpress 3.0.1 permalinks with isapi 2
Author
Message |
bluegecko
Newbie


Joined: 26 January 2011
Posts: 4
Posted: 26 January 2011 at 2:37am

Hi,

i am trying to get wordpress pretty permalinks to work with custom structure
/%postname% at http://www.haags-platform.nl/site

i use the following isapi  rewrite rules:

[ISAPI_Rewrite]

RewriteBase /
RewriteCond ${REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
# Voor speciale mappen van wordpress (i.e. theme, admin, etc.)
RewriteRule /wp-(.*) /wp-$1 [L]

# Voor al je wordpress paginas
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /\?$1 [L]



i get the following parse error:
Line 3: Unrecognized string: RewriteBase /
Line 4: Unrecognized string: RewriteCond ${REQUEST_FILENAME} !-f
Line 5: Unrecognized string: RewriteCond ${REQUEST_FILENAME} !-d

what should i do to get it to work?

regards,

wouter
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 26 January 2011 at 8:48am

You config was probably taken from Apache config so it doesn't fully comply with ISAPI_Rewrite 2 syntax.
It should be smth as follows:

[ISAPI_Rewrite]

# Voor speciale mappen van wordpress (i.e. theme, admin, etc.)
RewriteRule /wp-(.*) /wp-$1 [I,L]

# Voor al je wordpress paginas
RewriteRule / /index.php [L]
RewriteRule /(?!(?:list|all|physical|folders|and|files|here))(.+) /\?$1 [I,L]

__________________
Regards,
Anton
Back to Top
 
bluegecko
Newbie


Joined: 26 January 2011
Posts: 4
Posted: 27 January 2011 at 2:28am

Hi Anton,

I tried this:

-------------------------------------------------------
[ISAPI_Rewrite]

# Voor speciale mappen van wordpress (i.e. theme, admin, etc.)
RewriteRule /wp-(.*) /wp-$1 [I,L]

# Voor al je wordpress paginas
RewriteRule / /index.php [L]
RewriteRule /(?!(?:site|site/index.php))(.+) /\?$1 [I,L]
-------------------------------------------------------

but it didn't work
I am not a programmer, so it is a little bit abracabra for me

regards,

wouter
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 27 January 2011 at 4:48am

What is the testing request you are trying to get working? And how the resulting URL should look?
Please try to have something like this in your last rule:

RewriteRule /(?!(?:css|js|script|index\.php|etc))(.+) /\?$1 [I,L]

__________________
Regards,
Anton
Back to Top
 
bluegecko
Newbie


Joined: 26 January 2011
Posts: 4
Posted: 27 January 2011 at 5:32am

Hi,

i am trying to realize this structure:
eg:
http://haags-platform.nl/site/werkgroepen

custom pretty permalinks setting in wordpress: /%postname%

Result:

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)


httpd.ini rules:

[ISAPI_Rewrite]

# Voor speciale mappen van wordpress (i.e. theme, admin, etc.)
RewriteRule /wp-(.*) /wp-$1 [I,L]

# Voor al je wordpress paginas
RewriteRule / /index.php [L]
RewriteRule /(?!(?:css|js|script|site|index\.php|etc))(.+) /\?$1 [I,L]

as i said, i am more like a designer,
probably looks pretty simply to you guys.

regards, wouter
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 28 January 2011 at 5:02am

Please try it the following way:

RewriteRule /(?!(?:css|js|script|site|index\.php|etc))(.+) /index.php\?$1 [I,L]

BTW, is it necessary for you to stick to ISAPI_Rewrite2. Don't you have an option to shift to ISAPI_Rewrite3? This will make your life a bit
easier.

__________________
Regards,
Anton
Back to Top
 
bluegecko
Newbie


Joined: 26 January 2011
Posts: 4
Posted: 02 February 2011 at 2:14am

Hi Anton,

Thanks for your help regarding the isapi-rewrite2 rules.

I have chosen to use another forum than bbpress so it's no longer mandatory to put the rules in isapi-rewrite2.

thankx for your time.

regards,

wouter
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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