• Resolved jagomez

    (@jagomez)


    Hi team,

    I’ve a problem with my new WP site http://aerialproductions.es, I need redirect some old URL to the base new site for not loss visits but I’ve a

    “err_too_many_redirects” I’ve a WP 4.4.2 installed on CPanel V54.0 .

    I’ve an .htaccess code

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Redirect 301 /contacto-empresa-drones-barcelona.html http://aerialproductions.es/
    Redirect 301 /nuestra-empresa-profesional-con-drones.html http://aerialproductions.es/
    Redirect 301 /contacto.html http://aerialproductions.es/
    Redirect 301 /fotos-aereas-con-drones.html http://aerialproductions.es/
    Redirect 301 /seguridad.html http://aerialproductions.es/
    Redirect 301 /nuestra-empresa.html http://aerialproductions.es/
    Redirect 301 /videos-aereos.html http://aerialproductions.es/
    Redirect 301 /index.html http://aerialproductions.es/
    Redirect 301 /fotos-aereas.html http://aerialproductions.es/
    # END WordPress

    Any idea to make it and runs ok?
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • try this one for redirect:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^contacto-empresa-drones-barcelona.html(/.*)?$ http://aerialproductions.es/$1 [R=301,L]
    RewriteRule ^nuestra-empresa-profesional-con-drones.html(/.*)?$ http://aerialproductions.es/$1 [R=301,L]
    RewriteRule ^contacto.html(/.*)?$ http://aerialproductions.es/$1 [R=301,L]
    RewriteRule ^fotos-aereas-con-drones.html(/.*)?$ http://aerialproductions.es/$1 [R=301,L]
    RewriteRule ^seguridad.html(/.*)?$ http://aerialproductions.es/$1 [R=301,L]
    RewriteRule ^nuestra-empresa.html(/.*)?$ http://aerialproductions.es/$1 [R=301,L]
    RewriteRule ^videos-aereos.html(/.*)?$ http://aerialproductions.es/$1 [R=301,L]
    RewriteRule ^index.html(/.*)?$ http://aerialproductions.es/$1 [R=301,L]
    RewriteRule ^fotos-aereas.html(/.*)?$ http://aerialproductions.es/$1 [R=301,L]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Ahir Hemant

    (@hemant-ahir)

    Hey Ravi can you help me to do this actually my current .htaccess is below.

    RewriteEngine On
    RewriteBase /public
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ – [NC,L]
    RewriteRule ^.*$ public/index.php [NC,L]

    So when i type: http://www.xyz.com redirect to http://www.xyz.com/public/index.php
    so i need to remove public/index.php and redirect to root website.

    any quick solution please

    First of all post own question.

    Thread Starter jagomez

    (@jagomez)

    Thanks Ravi!!

    Works perfectly!!
    Thanks a lot!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘err_too_many_redirects .htaccess’ is closed to new replies.