Forums

I get "page not found" when I view pages I create (12 posts)

  1. yonnermark
    Member
    Posted 3 years ago #

    Well hello and thanks in advance for any help.

    I have an already established website, http://www.domain.com
    It is a dynamic site and the homepage is index.php

    I want to install wordpress in my root directory because I desparately need a quick and easy way to make pages with URLs such as:
    http://www.domain.com/keyword-here

    I don't want it to be:
    http://www.domain.com/blog/keyword-here

    I have just created a page and I changed the URL to /keyword-here but when I clicked "view page" I got a "page not found" error.

    Any tips? Am I breaking a fundamental rule of some kind?
    I didn't even upload the index.php for wordpress because it would have overwritten my existing site index file.

    cheers :)
    Mark

  2. yonnermark
    Member
    Posted 3 years ago #

    That's strange. I just moved the whole thing to /blog/ and I'm still having the same problem.

    AHAHAHAHAHA!!!!
    Was I supposed to change something in my .htaccess file when I switched the permalink style?

    Please advise :)
    thanks
    Mark

  3. iridiax
    Member
    Posted 3 years ago #

  4. yonnermark
    Member
    Posted 3 years ago #

    I manually updated my .htaccess file but had a major temporary disaster. My whole site became inaccessible. Even my site homepage was "page not found". The only pages that worked where my new wordpress ones.

    Thankfully, when I put the .htaccess file back to how it was, my site was back to normal BUT NOW the wordpress-created pages are "page not found".

    I am now completely happy to run my blog from a sub-directory to keep it out of harms way but this still doesn't help me solve the permalink problem. How can I use permalinks without the .htaccess changes making my whole site inaccessible?

    thanks
    mark

  5. yonnermark
    Member
    Posted 3 years ago #

    Hi folks.
    Any tips for my above post please?
    Thanks for any further input
    Regards,
    Mark

  6. iridiax
    Member
    Posted 3 years ago #

    Now that your .htaccess is back to how it was, you need to change your WordPress permalinks back to how they were. Go to the permalinks settings in the dashboard and reset them to what they were.

  7. yonnermark
    Member
    Posted 3 years ago #

    Thanks.
    But do need static-looking URLs. Can I still achieve that if I leave my .htaccess file how it was?

  8. yonnermark
    Member
    Posted 3 years ago #

    Sorry for the typo.
    I meant to say that I DO need static URLs. Can I achieve this without editing my .htaccess file?

  9. yonnermark
    Member
    Posted 3 years ago #

    I have changed the permalinks back to standard and everything works. BUT I want to use static links. How can I achieve this please anyone?

    Thanks in advance
    Mark

  10. yonnermark
    Member
    Posted 3 years ago #

    Hello folks.
    How can I achieve static links without the .htaccess file edit making the rest of my site inaccessible?

    thanks again
    Mark

  11. yonnermark
    Member
    Posted 3 years ago #

    One last "bump"
    :(

  12. nosferatuscoffin
    Member
    Posted 3 years ago #

    I am not sure what you mean by "static" links. When you create a page in WP, (e.g. http://www.site.com/example_page/ that is a static URL, as there is only one way to access it and that is via the above URL. As opposed to creating a category where it can be accessed directly or by the posts contained within said category.

    Could you post your htaccess file here? (Leave out any sensitive information, if it contains any).

    By default it should look like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

Topic Closed

This topic has been closed to new replies.

About this Topic