WordPress.org

Ready to get started?Download WordPress

Forums

Comments Problem (6 posts)

  1. keithmcmean
    Member
    Posted 2 years ago #

    Hi, I have a problem whereby every time a comment is added the page refreshes to the homepage and the comment isn't added to the system.
    I have tried lots of different things like changing to the default theme, restoring permalinks to default but nothing seems to work...any ideas what could be causing this?

    Thanks :)

  2. keithmcmean
    Member
    Posted 2 years ago #

    Sorry I should have added the URL@ http://testsite.theparamountexpress.com/

    :)

  3. C W
    Member
    Posted 2 years ago #

    Have you tried disabling all plugins to check whether one (or more) of them is interfering?

  4. C W
    Member
    Posted 2 years ago #

    Okay, thanks for posting the link. Have you done anything to your .htaccess file recently?

    Look at the URL after submitting the comment form... it doesn't just "refresh to the homepage", it goes to the homepage with ^http:/118.209.141.72/ at the end. This could suggest an errant line in your .htaccess file.

  5. keithmcmean
    Member
    Posted 2 years ago #

    Hi Cyril, sorry you are right I should have said. Yes I have, there are only three plugins in the site so that was quite easy.

  6. keithmcmean
    Member
    Posted 2 years ago #

    This is the htaccess file I use on all my sites so not sure why its shouldn't work this time...unless you can spot anything Cyril?

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    RewriteRule wp-includes/js/tinymce/plugins/mcespell/spell-check-service wp-content/plugins/ajax_spellchecker/service/spell-check-service.php [QSA,L]
    RewriteRule wp-includes/js/tinymce/plugins/mcespell/(.*) wp-content/plugins/ajax_spellchecker/tinymce/mcespell/$1 [L]
    php_value upload_max_filesize "150M"
    php_value post_max_size "150M"
    php_value memory_limit "150M"

    </IfModule>

    # Protect from spam bots
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
    RewriteCond %{HTTP_REFERER} !.ninamariedesigns.co.uk.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
    </IfModule>

Topic Closed

This topic has been closed to new replies.

About this Topic