WordPress.org

Forums

htaccess code showing content twice (1 post)

  1. avil
    Member
    Posted 3 years ago #

    To cleanup the urls I've tried adding the htaccess code

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{QUERY_STRING} .
    RewriteCond %{QUERY_STRING} !^(s|p)=.*
    RewriteCond %{REQUEST_URI} !.*wp-admin.*
    RewriteRule ^(.*)$ /$1? [R=301,L]
    </IfModule>

    Code Source - http://www.labnol.org/internet/clean-wordpress-urls/19301/

    but the code is showing the content twice.

    Any help would be quite helpful.

    - Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags