Note that there are some explanatory texts on larger screens.

plurals
  1. PO.htaccess redirect not working in WordPress 3.5.1 on Apache
    primarykey
    data
    text
    <p>I'm trying to fix a canonical issue with WordPress 3.5.1</p> <p><a href="http://www.whatisanaddiction.com/index.php" rel="nofollow">http://www.whatisanaddiction.com/index.php</a> needs to redirect to <a href="http://www.whatisanaddiction.com/" rel="nofollow">http://www.whatisanaddiction.com/</a> so I don't end up with a duplicate content issue with search engines.</p> <p>I don't know the code that needs to be used in .htaccess very well but I never had a problem before WordPress' code inserted in the .htaccess.</p> <p>I've tried all sorts of variations and many cause the whole website to "Server Error".</p> <p>Here's what I've got so far but it still doesn't redirect the index.php verions correctly.</p> <pre><code># BEGIN WordPress &lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteCond %{THE_REQUEST} ^.*\/index\.php\ HTTP/ RewriteRule ^(.*)index\.php$ /$1 [R=301,L] # always www RewriteCond %{HTTP_HOST} !^www\.whatisanaddiction\.com$ [NC] RewriteRule ^(.*)$ http://www.whatisanaddiction.com/$1 [L,R=301] &lt;/IfModule&gt; # END WordPress Redirect 301 http://www.whatisanaddiction.com/index.php http://www.whatisanaddiction.com/ </code></pre> <p>... I see all sorts of people asking this question online but no "working" solution - so far. Maybe I'm not searching for the right terms???</p> <p>Any help would be greatly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload