This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: WP Pretty URLs issue
Author
Message |
gerryleblanc
Newbie


Joined: 25 October 2011
Posts: 5
Posted: 09 February 2012 at 12:27pm

Hello,
I have installed Wordpress at the root of my domain. Using ISAPI 3.
My permalinks structure is:
/%post_id%/%postname%/

I am trying to find the union of these two chunks of code:

Helicon's Rules for WP pretty URLS:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(\d+)/[^/]+/?$ index.php?p=$1 [NC,L]

This above works... for posts but not pages.

Wordpress's Rules:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond�%{REQUEST_FILENAME}�!-f
RewriteCond�%{REQUEST_FILENAME}�!-d
RewriteRule . /index.php [L]

This set works for both posts and pages, but breaks relative addressing to CSS
and JS files.

What can I do to find the mix of these two?
Is there a way to not apply the rules to files in the /wp-content/ or /wp-admin/
directories?

Thank you for your insight and suggestions.
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 10 February 2012 at 4:16am

Hello,

1) CSS and JS files are screwed because links in your pages are relative. You need to make them root-relative or absolute.
2) We can also create an exception for admin folders.

First, please, provide the rewrite.log for the first set of rules for WP.
Logging issues described in FAQ

Regards
Andrew
Back to Top
 
gerryleblanc
Newbie


Joined: 25 October 2011
Posts: 5
Posted: 10 February 2012 at 11:20am

Andrew,
my host wont give me the log info!

I have added the line to exempt those directories, and now I am looking
good.

Cheers,
Gerry
Back to Top
 

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

Printable version Printable version