WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Pages Not Found (5 posts)

  1. smartie
    Member
    Posted 8 years ago #

    In two different installations of wordpress, I get a 404 Not Found error when I try and view a page. The pages do exist somewhere for I am able to edit them and they are listed as existing when I insert 'wp_list_pages' into the sidebar. But click on the links and you get a 404 error. URL of the blog in question.

    Logic would say that since I've modified the permalink structure, there is an error in the .htaccess that is causing the error when I attempt to view the page by it's page name and that for some reason it's only accessible by using the page ID, but using the page ID still results in a 404 error. Examples: old blog, new blog - page name, new blog - page ID.

    I've scoured the forum for similar problems and attempted many of the solutions, but nothing has worked so far. If someone would be so kind as to tell me what I should see in my .htaccess for the page link structure or is able to offer any other suggestions/solutions, I would be most grateful. =)

  2. Hmm it looks like your .htaccess is screwed and your are running one of the permalink enforcing plugins that sends redirects when pages are accessed other than by the permalink as a request for http://pen.verte.org.uk/index.php?page_id=131 gets the following response:

    HTTP/1.1 301 Moved Permanently
    Date: Mon, 22 Aug 2005 11:32:11 GMT
    Server: Apache/1.3.33 (Unix)
    X-Powered-By: PHP/4.4.0
    X-Pingback: http://pen.verte.org.uk/xmlrpc.php
    Location: http://pen.verte.org.uk/info/
    Content-Type: text/html; charset=UTF-8

    I would sugest that you try disabling the plugin and sorting out the .htaccess problems and then re-enabling the problem.

    It may be worth renaming your .htaccess file as a backup and then gettering WordPress to regenerate the rules to ensure that they are all correct.

  3. smartie
    Member
    Posted 8 years ago #

    Thanks a lot! That worked. =) What's strange though, is that it doesn't work for the old blog. Not to worry since I worked around it and it'll shortly just be there as an archive anyway.

  4. mdo
    Member
    Posted 8 years ago #

    I have a similar problem. I managed to change the permalinks on another blog of mine with WP 1.5.1. However, I tried to change the permalink structure on my new blog with v 1.5.2 and I get 404's when I try to access the pages. My head is killing me right now and I need to get this done, so any help would be appreciated.

    Site w/ problem: http://ottofamily.no-ip.org/~mark/concept/

    And the .htaccess:
    '
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /~mark/concept/
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [S=35]
    RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?&feed=$1 [QSA,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?&feed=$1 [QSA,L]
    RewriteRule ^page/?([0-9]{1,})/?$ /~mark/concept/index.php?&paged=$1 [QSA,L]
    RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/page/?([0-9]{1,})/?$ /~mark/concept/index.php?&paged=$1 [QSA,L]
    RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /~mark/concept/index.php?s=$1&paged=$2 [QSA,L]
    RewriteRule ^search/(.+)/?$ /~mark/concept/index.php?s=$1 [QSA,L]
    RewriteRule ^archives/category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/category/(.+)/page/?([0-9]{1,})/?$ /~mark/concept/index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^archives/category/(.+)/?$ /~mark/concept/index.php?category_name=$1 [QSA,L]
    RewriteRule ^archives/author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/author/([^/]+)/page/?([0-9]{1,})/?$ /~mark/concept/index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^archives/author/([^/]+)/?$ /~mark/concept/index.php?author_name=$1 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /~mark/concept/index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /~mark/concept/index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /~mark/concept/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/?$ /~mark/concept/index.php?year=$1&monthnum=$2 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/page/?([0-9]{1,})/?$ /~mark/concept/index.php?year=$1&paged=$2 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/?$ /~mark/concept/index.php?year=$1 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/trackback/?$ /~mark/concept/index.php?year=$1&monthnum=$2&day=$3&name=$4&tb=1 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /~mark/concept/index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/page/?([0-9]{1,})/?$ /~mark/concept/index.php?year=$1&monthnum=$2&day=$3&name=$4&paged=$5 [QSA,L]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)(/[0-9]+)?/?$ /~mark/concept/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA,L]
    </IfModule>
    '

  5. davidshockey
    Member
    Posted 8 years ago #

    I fixed this same problem on my site by changing the properties on .htaccess so that it could be edited by public.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags