WordPress.org

Ready to get started?Download WordPress

Forums

Comments still going to a broken link page (4 posts)

  1. chefkevin
    Member
    Posted 3 years ago #

    The comments on my blog posts at http://cooking-solutions.com/blog are still going to a broken link page.

    If you leave a comment you get this: http://cooking-solutions.com/wp-comments-post.php

    The page it should go to is http://cooking-solutions.com/blog/wp-comments-post.php

    Where do I set the incorrect URL info so it goes where it should?

    Waiting for weeks to get this resolved... HELP!!!

    Chef Kevin

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Try editing your theme's comments.php file and ensure that it uses the line:

    <form action="<?php bloginfo('url'); ?>/wp-comments-post.php" method="post" id="commentform">

    or

    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

  3. chefkevin
    Member
    Posted 3 years ago #

    My comments.php has this line:
    <form action='comment.php' method='get'>

    Do I replace this with the above or add another line above or below it?

    Also, do I replace 'url OR 'siteurl' with my full URL or does it automatically tie to another file?

    Thanks!

    CK

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Replace the line currently in your comments.php with one of the lines quoted above. Either version will create the correct, full, url automatically.

Topic Closed

This topic has been closed to new replies.

About this Topic