Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’ve noticed a tiny problem with many implementations of the regulus theme. In the page navigation tabs across the top, if the text contains a space (eg “contact me”), the second word will wrap underneath, messing up the formatting. Check it in Internet Explorer to see what I mean.

    The cause can be found here:


    ul#nav li a {
    padding:1em 1.2em;
    ... (edited)
    display:block;
    _width:1em;
    }

    The “_width:1em” is a hack for IE to expand the tab’s hotspot to the full size of the ‘li’. A side effect is that, since the width is 1em, any spaces will wrap onto the next line.

    Fix this by adding “white-space:nowrap;” to the rules.

    Thread Starter gwynperry

    (@gwynperry)

    The good news is, your rules appear to work like a dream, after I modded them to my requirements. I’m still having problems in some places, but those are of my own making (hackish templating).

    If ISAPI_rewrite is making a log then it isn’t appearing in my webroot, only an empty httpd.parse.errors file. Earlier on my host mentioned something about having seen a URL that I had tried to rewrite, so they must have access to some sort of log, but not me it seems.

    The blank page problem was a result of trying to devise my own rules and making a mess of it. When I dropped yours in and adapted them to my site, things started working just fine.

    Thread Starter gwynperry

    (@gwynperry)

    That’s really helpful. Thanks!

    One more question regarding permalinks:
    I’m now implementing my rule set, but I have no way of knowing if it is working properly. I often end up getting unexpected results, like empty pages (with the template). Is there a way of checking what has actually been rewritten? Can I see what querystring is being written by my rule set? It would really help with debugging my rules.

    I’m thinking something along the lines of a WP template tag or function. Any suggestions?

    Thanks again for your help.

    Forum: Alpha/Beta/RC
    In reply to: Pages not showing up

    As I said, that was what worked for me, and I’m looking for a more elegant solution. I am using WP2.0, but I’m a new user this week, so I don’t know a great deal about it. I needed a quick fix, and this was the best I could do.

    First, I would check to see if permalinks are in fact the problem. Go to the admin page, then Options >> Permalinks. Choose the default option (?p=123). Copy down your custom string first if you don’t want to lose it. Now test your site. Are pages working? They were for me.

    What moshu said (replace current .htaccess file with empty, writable one, then update permalinks) is probalby the way to go. This is actually what I tried before my host informed me that they’d ‘upgraded’ they’re servers to IIS without telling me.

    Moshu, do you know where in the WP code the permalinks are created? I may be able to adapt the code to produce ISAPI_rewrite rules in an httpd.ini file. I’d be happy to host such a modification on my site. (I’m guessing that WP currently only does mod_rewrite in .htaccess).

    Forum: Alpha/Beta/RC
    In reply to: Pages not showing up

    I was having the same problem. I found this post whilst searching for a more elegant solution.

    My solution was to add individual rewrite rules for each page, based on their database ID. I’m on IIS with ISAPI_rewrite, instead of the usual Apache with Mod_rewrite. This is an example from my httpd.ini (if you are on Apache, look in .htaccess):

    RewriteRule /about/ /?page_id=3 [I,U,O]

    One rule for each page, and new rules are needed when new pages are created.
    It’s now working for me. Hope this helps

Viewing 5 replies - 1 through 5 (of 5 total)