WordPress.org

Ready to get started?Download WordPress

Forums

Pages Not Working wp1.5 (28 posts)

  1. harken
    Member
    Posted 9 years ago #

    Ok... Let me start out saying WordPress RockS! Second of all... I have a problem with the pages. Someone has tried to help me, but I'm still lost. Whenever I create a page, it creates the link on the main page but then when I click it, it goes back to the main page, like I created a duplicate. I was told this has something to do with htaccess file and my chmod settings but I can't change them from 2775 or -w- rwx rwx r-x. So is there a tutorial on how to create a new page with this if I can't do it from the admin.

  2. xyretp21
    Member
    Posted 9 years ago #

    I know this is not helpfull to resolving your problem, but it works for me

    and I am using mod-_rewrite and permalinks

  3. Nick Momrik
    Member
    Posted 9 years ago #

    Have you tried copying the rewrite rules to your .htaccess file and uploading it instead of having WP do it?

  4. harken
    Member
    Posted 9 years ago #

    How would i do that? I'm not even sure I can edit the .htaccess file. Last time I tried downloading it and viewing it... it was blank. Sorry I am completely new to blogs.

  5. harken
    Member
    Posted 9 years ago #

    bump..

  6. Nick Momrik
    Member
    Posted 9 years ago #

    If it was blank, then it doesn't sound like WP is updating the file, so you must not have the correct permissions on it.

    If you've never put anything into a .htaccess file by yourself, you can simply create one on your local computer and upload it. You'll need to go into your WP admin ->Options->permalinks and at the bottom should be a big box with a bunch of rewrite rules in it. Copy everything in there, paste it into a file called .htaccess and upload it to the root of your site. That should do that trick.

  7. harken
    Member
    Posted 9 years ago #

    I don't see any rewrite rules when I go there... just see examples and all the fields are emtpy.
    If you want to see I could show you somehow.
    When I went to "Manage > Files > htaccess" it shows just
    Options -Indexes

  8. harken
    Member
    Posted 9 years ago #

    Is this bad?

  9. Nick Momrik
    Member
    Posted 9 years ago #

    If all of the fields are empty, then you don't have permalinks turned on and pages will not work.

    At least I don't think pages will work in the way that you'd want them to without permalinks.

  10. harken
    Member
    Posted 9 years ago #

    So whats my solution?

    http://www.throughthegate.org

    you can see what i mean there.

  11. Rob Poitras
    Member
    Posted 9 years ago #

    you need to go into the permalinks section under wp-admin and then put your fields into those boxes.
    like if you want just the category name and date to work.
    then once you hit ok, it will give you the code that needs to be inserted into your .htaccess file
    I had a blank one on my root file for my site. so i downloaded it. added the code when i opened it with notepad then uploaded it to the my root folder for the wordpress install.

    and also when you upload it. make sure the .htaccess file is 777 chmod so that when you create new pages it will write to the file.

  12. harken
    Member
    Posted 9 years ago #

    ok i messed up... i put /%year%/%monthnum%/%day%/%postname%/ and hit update permalink now none of the links on the main page work... I don't understand what i did.

  13. harken
    Member
    Posted 9 years ago #

    Can someone look at my site and see what i did wrong? First the pages weren't working... now the links are all broke. I'm sorry, just new to "blog" terminology.... I worked with forums to long i think.

  14. Nick Momrik
    Member
    Posted 9 years ago #

    After you update the permalink structure, you have to update your .htaccess with the list of rules that it gives you at the bottom.

  15. harken
    Member
    Posted 9 years ago #

    It didn't give me any rules... After I updated it, I went to Manage>Files and viewed the .htaccess and it had a huge list of rewrite rules on it.

  16. Nick Momrik
    Member
    Posted 9 years ago #

    Ok...so you have it setup to update .htaccess on your own. Can we get a link to your site to see what you are talking about?

    Edit: Whoops...didn't see it up there since it wasn't linked.

  17. Nick Momrik
    Member
    Posted 9 years ago #

    http://www.throughthegate.org/index.php?pagename=tes333 works, so the page is working, just not the rewrite rules. Can you copy your rewrite rules into here? Make sure to put them in between backticks.

  18. harken
    Member
    Posted 9 years ago #

    oops ok... sorry... didn't know you replied.

  19. harken
    Member
    Posted 9 years ago #

    Options -Indexes
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [S=55]
    RewriteRule ^(test-page)/trackback/?$ /index.php?pagename=$1&tb=1 [QSA,L]
    RewriteRule ^(test-page)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(test-page)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(test-page)/page/?([0-9]{1,})/?$ /index.php?pagename=$1&paged=$2 [QSA,L]
    RewriteRule ^(test-page)/?([0-9]+)?/?$ /index.php?pagename=$1&page=$2 [QSA,L]
    RewriteRule ^(demodemo)/trackback/?$ /index.php?pagename=$1&tb=1 [QSA,L]
    RewriteRule ^(demodemo)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(demodemo)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(demodemo)/page/?([0-9]{1,})/?$ /index.php?pagename=$1&paged=$2 [QSA,L]
    RewriteRule ^(demodemo)/?([0-9]+)?/?$ /index.php?pagename=$1&page=$2 [QSA,L]
    RewriteRule ^(test33333)/trackback/?$ /index.php?pagename=$1&tb=1 [QSA,L]
    RewriteRule ^(test33333)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(test33333)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(test33333)/page/?([0-9]{1,})/?$ /index.php?pagename=$1&paged=$2 [QSA,L]
    RewriteRule ^(test33333)/?([0-9]+)?/?$ /index.php?pagename=$1&page=$2 [QSA,L]
    RewriteRule ^(tes333)/trackback/?$ /index.php?pagename=$1&tb=1 [QSA,L]
    RewriteRule ^(tes333)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(tes333)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(tes333)/page/?([0-9]{1,})/?$ /index.php?pagename=$1&paged=$2 [QSA,L]
    RewriteRule ^(tes333)/?([0-9]+)?/?$ /index.php?pagename=$1&page=$2 [QSA,L]
    RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1 [QSA,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1 [QSA,L]
    RewriteRule ^page/?([0-9]{1,})/?$ /index.php?&paged=$1 [QSA,L]
    RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/page/?([0-9]{1,})/?$ /index.php?&paged=$1 [QSA,L]
    RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /index.php?s=$1&paged=$2 [QSA,L]
    RewriteRule ^search/(.+)/?$ /index.php?s=$1 [QSA,L]
    RewriteRule ^category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/page/?([0-9]{1,})/?$ /index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^category/(.+)/?$ /index.php?category_name=$1 [QSA,L]
    RewriteRule ^author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/page/?([0-9]{1,})/?$ /index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/?$ /index.php?author_name=$1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/?$ /index.php?year=$1&monthnum=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/page/?([0-9]{1,})/?$ /index.php?year=$1&paged=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/?$ /index.php?year=$1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/trackback/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&tb=1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&paged=$5 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA,L]
    </IfModule>

    # END WordPress

  20. harken
    Member
    Posted 9 years ago #

    bump...

  21. harken
    Member
    Posted 9 years ago #

    bump..

  22. Nick Momrik
    Member
    Posted 9 years ago #

    Does your server support mod_rewrite? Everything looks fine, but even your normal permalinks aren't working, so it's not just pages.

  23. harken
    Member
    Posted 9 years ago #

    How would I be able to tell if it supports mod_rewrite?

  24. Nick Momrik
    Member
    Posted 9 years ago #

    Contact your host.

  25. harken
    Member
    Posted 9 years ago #

    They said yes...

  26. harken
    Member
    Posted 9 years ago #

    bump...

  27. harken
    Member
    Posted 9 years ago #

    bump...

  28. Nick Momrik
    Member
    Posted 9 years ago #

    harken,
    Rewrite is not working on your site. The rules look fine. None of your permalinks are working...pages, date archives, single posts. Either you don't have .htaccess in the correct place on your server, the server isn't reading it correctly, or rewrite is not enabled. I can't see anything else that would be a problem.

    I can access everything using the "ugly" URLs, but the permalinks don't work, which is due to one of the reasons I mentioned above.

    I couple of things you can try...
    1) Resetting the permissions on your .htaccess file.
    2) Delete the .htaccess file from your server, copy the rules from WP into a new .htaccess, and upload it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.