vendredi 5 mai 2017

.htaccesss double reditection in wordpress from www to non www without rewriterule

I have WordPress in my FTP folder

/public_html/bila_new/wordpress/

My .htaccess file is in the path:

/public_html/bila_new

In the htaccess I've this:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteRule ^download do_pobrania [R=301,L]
RewriteRule ^nagrywanie-rozmow-oygo nagrywanie-rozmow-cr-oygo [R=301,L]
RewriteRule ^rejestrator-rozmow-cr-apresa/apresa-voip/ rejestrator-rozmow-cr-apresa [R=301,L]
RewriteRule ^rejestrator-rozmow-voip nowa-funkcjonalnosc-cr-voip-1 [R=301,L]
RewriteRule ^telefon-z-nagrywaniem-rozmow-feature-phone-175sd nowy-produkt-telefon-z-nagrywaniem-rozmow-na-sd [R=301,L]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

My website is running as www.example.com.

As a result I'm getting double redirection, for example:

301 - > http:http://ift.tt/2phTpT6
301 - > http:http://ift.tt/2p5kkW0

Any idea?




Aucun commentaire:

Enregistrer un commentaire