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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: wordpress 3.0.1 permalinks with isapi 2 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
bluegecko
Newbie
Newbie


Joined: 26 January 2011
Online Status: Offline
Posts: 4
Posted: 26 January 2011 at 2:37am | IP Logged Quote bluegecko

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 View bluegecko's Profile Search for other posts by bluegecko
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 26 January 2011 at 8:48am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
bluegecko
Newbie
Newbie


Joined: 26 January 2011
Online Status: Offline
Posts: 4
Posted: 27 January 2011 at 2:28am | IP Logged Quote bluegecko

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 View bluegecko's Profile Search for other posts by bluegecko
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 27 January 2011 at 4:48am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
bluegecko
Newbie
Newbie


Joined: 26 January 2011
Online Status: Offline
Posts: 4
Posted: 27 January 2011 at 5:32am | IP Logged Quote bluegecko

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 View bluegecko's Profile Search for other posts by bluegecko
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 28 January 2011 at 5:02am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
bluegecko
Newbie
Newbie


Joined: 26 January 2011
Online Status: Offline
Posts: 4
Posted: 02 February 2011 at 2:14am | IP Logged Quote bluegecko

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 View bluegecko's Profile Search for other posts by bluegecko
 

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