• Resolved guarriman

    (@guarriman)


    Hi.

    Version 1.5.1.1. My WP doesn’t show a static page (“Sorry, no posts matched your criteria.” message).

    However the URL matches with the ‘guid’ and ‘post_name’ fields into ‘wp_post’ (‘post_status’ = ‘static’).

    Any suggestion?

Viewing 11 replies - 1 through 11 (of 11 total)
  • First, upgrade, as you are in grave danger!

    Second, make sure your theme doesn’t have some abnormal alteration to the loop by which that page might be disreguarded (modifications of query_posts()), etc.

    Thread Starter guarriman

    (@guarriman)

    In fact, the first created pages work but the lasts I created don’t.

    Did you change in the meantime your permalinks? If you are using “nice” permalinks your .htaccess file should be writable when you create the Page, otherwise it won’t be found.

    Thread Starter guarriman

    (@guarriman)

    Yes. I did.

    Wait a moment…

    Thread Starter guarriman

    (@guarriman)

    Hi moshu.

    Thank you for your answer. I changed in the meantime my permalinks in order to use “nice” permalinks.

    I’ve just chmoded +w ‘.htaccess’, created a new static page, but I’m still unable to see it πŸ™

    I don’t know anything about command lines… I know via FTP it has to be at least 666.

    Thread Starter guarriman

    (@guarriman)

    I chmoded 666 (read and write)

    Thread Starter guarriman

    (@guarriman)

    Thread Starter guarriman

    (@guarriman)

    Into my ‘.htaccess’ (it was automatically written by WP):
    RewriteRule ^(my-static-page)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(my-static-page)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(my-static-page)/page/?([0-9]{1,})/?$ /blog/index.php?pagename=$1&paged=$2 [QSA,L]
    RewriteRule ^(my-static-page)(/[0-9]+)?/?$ /blog/index.php?pagename=$1&page=$2 [QSA,L]
    RewriteRule ^(my-static-page)/trackback/?$ /blog/index.php?pagename=$1&tb=1 [QSA,L]

    Thread Starter guarriman

    (@guarriman)

    Within ‘.htaccess’, some lines of a static page which works.

    RewriteRule ^(static-page-which-works)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(static-page-which-works)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(static-page-which-works)/page/?([0-9]{1,})/?$ /blog/index.php?pagename=$1&paged=$2 [QSA,L]
    RewriteRule ^(static-page-which-works)(/[0-9]+)?/?$ /blog/index.php?pagename=$1&page=$2 [QSA,L]
    RewriteRule ^(static-page-which-works)/trackback/?$ /blog/index.php?pagename=$1&tb=1 [QSA,L]

    Thread Starter guarriman

    (@guarriman)

    SOLVED.

    It was a weird issue. My ‘.htaccess’ file contained two parts:
    <IfModule mod_rewrite.c>
    ……
    </IfModule>
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    ….
    </IfModule>
    # END WordPress

    So WP was writing on the last part, but Apache was only reading the first one.

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

The topic ‘WP won’t show a static page’ is closed to new replies.