• Well hello and thanks in advance for any help.

    I have an already established website, https://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:
    https://www.domain.com/keyword-here

    I don’t want it to be:
    https://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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter yonnermark

    (@yonnermark)

    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

    Thread Starter yonnermark

    (@yonnermark)

    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

    Thread Starter yonnermark

    (@yonnermark)

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

    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.

    Thread Starter yonnermark

    (@yonnermark)

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

    Thread Starter yonnermark

    (@yonnermark)

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

    Thread Starter yonnermark

    (@yonnermark)

    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

    Thread Starter yonnermark

    (@yonnermark)

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

    thanks again
    Mark

    Thread Starter yonnermark

    (@yonnermark)

    One last “bump”
    ??

    I am not sure what you mean by “static” links. When you create a page in WP, (e.g. https://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
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘I get “page not found” when I view pages I create’ is closed to new replies.