| Author |
|
bluegecko Newbie

Joined: 26 January 2011
Online Status: Offline Posts: 4
|
| Posted: 26 January 2011 at 2:37am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 26 January 2011 at 8:48am | IP Logged
|
|
|
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
Online Status: Offline Posts: 4
|
| Posted: 27 January 2011 at 2:28am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 27 January 2011 at 4:48am | IP Logged
|
|
|
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
Online Status: Offline Posts: 4
|
| Posted: 27 January 2011 at 5:32am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 28 January 2011 at 5:02am | IP Logged
|
|
|
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
Online Status: Offline Posts: 4
|
| Posted: 02 February 2011 at 2:14am | IP Logged
|
|
|
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 |
|
| |